removed characters which caused syntax errors

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3101 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2006-06-15 08:39:50 +00:00
parent cc35b218e1
commit a8e49419bf

View file

@ -238,11 +238,11 @@ class DboSybase extends DboSource {
$data = $this->boolean((bool)$data);
break;
default:
ifÊ(get_magic_quotes_gpc()Ê&&Êtrim(ini_get("magic_quotes_sybase"))Ê==Ê"") {
$dataÊ=Êstripslashes($data);
$dataÊ=Êstr_replace("'",Ê"''",Ê$data);
} elseifÊ(!get_magic_quotes_gpc()) {
$dataÊ=Êstr_replace("'",Ê"''",Ê$data);
if (get_magic_quotes_gpc() && trim(ini_get("magic_quotes_sybase")) == "") {
$data = stripslashes($data);
$data = str_replace("'", "''", $data);
} elseif (!get_magic_quotes_gpc()) {
$data = str_replace("'", "''", $data);
}
break;
}