mirror of
https://github.com/mrclay/minify.git
synced 2025-08-30 17:19:54 +02:00
Avoid calling get_magic_quotes_gpc() in tests for php >= 5.4
This commit is contained in:
@@ -17,7 +17,7 @@ function getPost($key)
|
||||
if (! isset($_POST[$key])) {
|
||||
return null;
|
||||
}
|
||||
return get_magic_quotes_gpc()
|
||||
return (PHP_VERSION_ID < 50400 && get_magic_quotes_gpc())
|
||||
? stripslashes($_POST[$key])
|
||||
: $_POST[$key];
|
||||
}
|
||||
|
Reference in New Issue
Block a user