diff options
Diffstat (limited to 'net-analyzer/pnp4nagios/files/pnp4nagios-0.6.26-magic-quotes.patch')
-rw-r--r-- | net-analyzer/pnp4nagios/files/pnp4nagios-0.6.26-magic-quotes.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-analyzer/pnp4nagios/files/pnp4nagios-0.6.26-magic-quotes.patch b/net-analyzer/pnp4nagios/files/pnp4nagios-0.6.26-magic-quotes.patch new file mode 100644 index 000000000000..7f1d8ae0cf51 --- /dev/null +++ b/net-analyzer/pnp4nagios/files/pnp4nagios-0.6.26-magic-quotes.patch @@ -0,0 +1,23 @@ +# https://github.com/lingej/pnp4nagios/commit/08ce9e26171b888c8e3b036b6693fd8f751970a8 +diff --git a/lib/kohana/system/libraries/Input.php b/lib/kohana/system/libraries/Input.php +index 0e23c80..b0b24f8 100644 +--- a/lib/kohana/system/libraries/Input.php ++++ b/lib/kohana/system/libraries/Input.php +@@ -54,14 +54,14 @@ public function __construct() + if (Input::$instance === NULL) + { + // magic_quotes_runtime is enabled +- if (get_magic_quotes_runtime()) ++ if (function_exists('get_magic_quotes_runtime')) + { +- set_magic_quotes_runtime(0); ++ ini_set('magic_quotes_runtime', 0); + Kohana::log('debug', 'Disable magic_quotes_runtime! It is evil and deprecated: http://php.net/magic_quotes'); + } + + // magic_quotes_gpc is enabled +- if (get_magic_quotes_gpc()) ++ if (function_exists('get_magic_quotes_gpc')) + { + $this->magic_quotes_gpc = TRUE; + Kohana::log('debug', 'Disable magic_quotes_gpc! It is evil and deprecated: http://php.net/magic_quotes'); |