Merge pull request #1424 from kijin/fix/no-such-version

PHP 5.4 이상에서는 magic_quotes_gpc 상태를 체크하지 않음
This commit is contained in:
bnu 2015-06-03 16:46:53 +09:00
commit 3522ba9933
8 changed files with 8 additions and 8 deletions

View file

@ -131,7 +131,7 @@ class DBMysql extends DB
*/
function addQuotes($string)
{
if(version_compare(PHP_VERSION, "5.9.0", "<") && get_magic_quotes_gpc())
if(version_compare(PHP_VERSION, "5.4.0", "<") && get_magic_quotes_gpc())
{
$string = stripslashes(str_replace("\\", "\\\\", $string));
}