// Norm forbid some " characters but it blocked the installer #PSCFV-3719

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16956 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-08-23 07:06:38 +00:00
parent 9ab66d1e47
commit 8911b22129
+2 -2
View File
@@ -146,8 +146,8 @@ class DbPDOCore extends Db
*/
public function _escape($str)
{
$search = array('\\', '\0', '\n', '\r', '\x1a', '"', '\'');
$replace = array('\\\\', '\\0', '\\n', '\\r', '\Z', '\\"', '\\\'');
$search = array('\\', "\0", "\n", "\r", "\x1a", '\'', '"');
$replace = array('\\\\', "\\0", "\\n", "\\r", '\\Z', '\\\'', '\\"');
return str_replace($search, $replace, $str);
}