# 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');