Project

General

Profile

Bug #21887 » 13104_core.diff

Administrator Admin, 2009-12-28 01:35

View differences:

t3lib/class.t3lib_sqlparser.php (working copy)
$buffer.=$v;
$reg = array();
preg_match('/\\*$/',$v,$reg);
preg_match('/\\\\$/', $v, $reg);
if ($reg AND strlen($reg[0])%2) {
$buffer.=$quote;
} else {
......
* @return string Output string
*/
protected function compileAddslashes($str) {
return $str;
$search = array('\\', '\'', '"', "\x00", "\x0a", "\x0d", "\x1a");
$replace = array('\\\\', '\\\'', '\\"', '\0', '\n', '\r', '\Z');
(2-2/3)