Skip to content

Commit

Permalink
fix an order of operations bug (refs #4601)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeelot committed Oct 21, 2012
1 parent 34adfad commit f770108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public static function init(array $settings = NULL)
}

// Determine if the extremely evil magic quotes are enabled
Kohana::$magic_quotes = version_compare(PHP_VERSION, '5.4') < 0 AND get_magic_quotes_gpc();
Kohana::$magic_quotes = (version_compare(PHP_VERSION, '5.4') < 0 AND get_magic_quotes_gpc());

// Sanitize all request variables
$_GET = Kohana::sanitize($_GET);
Expand Down

0 comments on commit f770108

Please sign in to comment.