Merge branch 'hotfix/1.7.7.2' into develop

This commit is contained in:
bnu 2014-10-02 10:47:06 +09:00
commit 7167de7b88
6 changed files with 14 additions and 51 deletions

View file

@ -1295,14 +1295,16 @@ class Context
}
else
{
$result[$k] = $v;
if($do_stripslashes && version_compare(PHP_VERSION, '5.9.0', '<') && get_magic_quotes_gpc())
{
$v = stripslashes($v);
$result[$k] = stripslashes($result[$k]);
}
if(!is_array($v))
if(!is_array($result[$k]))
{
$result[$k] = trim($v);
$result[$k] = trim($result[$k]);
}
}
}