mirror of
https://github.com/mrclay/minify.git
synced 2025-08-19 12:21:20 +02:00
Avoid calling get_magic_quotes_gpc() in tests for php >= 5.4
This commit is contained in:
@@ -127,7 +127,7 @@ class HTTPConditionalGetTest extends TestCase
|
||||
if (null === $inm) {
|
||||
unset($_SERVER['HTTP_IF_NONE_MATCH']);
|
||||
} else {
|
||||
$_SERVER['HTTP_IF_NONE_MATCH'] = get_magic_quotes_gpc()
|
||||
$_SERVER['HTTP_IF_NONE_MATCH'] = PHP_VERSION_ID < 50400 && get_magic_quotes_gpc()
|
||||
? addslashes($inm) :
|
||||
$inm;
|
||||
}
|
||||
|
Reference in New Issue
Block a user