Browse Source

* disable *&$^*#@ runtime ^@#*&$@ magical ^*!@@!! quoting

experimental/new_ui_api
Stig Bakken 25 years ago
parent
commit
599cede43e
  1. 3
      pear/PEAR/Config.php
  2. 1
      pear/scripts/pear.in

3
pear/PEAR/Config.php

@ -399,12 +399,9 @@ class PEAR_Config extends PEAR
if (!$fp) { if (!$fp) {
return $this->raiseError("PEAR_Config::readConfigFile fopen('$file','r') failed"); return $this->raiseError("PEAR_Config::readConfigFile fopen('$file','r') failed");
} }
$old_ini = ini_get("magic_quotes_runtime");
ini_set("magic_quotes_runtime", false);
$size = filesize($file); $size = filesize($file);
$contents = fread($fp, $size); $contents = fread($fp, $size);
fclose($fp); fclose($fp);
ini_set("magic_quotes_runtime", $old_ini);
$version = '0.1'; $version = '0.1';
if (preg_match('/^#PEAR_Config\s+(\S+)\s+/si', $contents, $matches)) { if (preg_match('/^#PEAR_Config\s+(\S+)\s+/si', $contents, $matches)) {
$version = $matches[1]; $version = $matches[1];

1
pear/scripts/pear.in

@ -29,6 +29,7 @@ set_time_limit(0);
ob_implicit_flush(true); ob_implicit_flush(true);
ini_set('track_errors', true); ini_set('track_errors', true);
ini_set('html_errors', false); ini_set('html_errors', false);
ini_set('magic_quotes_runtime', false);
require_once 'PEAR.php'; require_once 'PEAR.php';
require_once 'PEAR/Config.php'; require_once 'PEAR/Config.php';

Loading…
Cancel
Save