mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
cc35b218e1
commit
a8e49419bf
1 changed files with 5 additions and 5 deletions
|
@ -238,11 +238,11 @@ class DboSybase extends DboSource {
|
||||||
$data = $this->boolean((bool)$data);
|
$data = $this->boolean((bool)$data);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ifÊ(get_magic_quotes_gpc()Ê&&Êtrim(ini_get("magic_quotes_sybase"))Ê==Ê"") {
|
if (get_magic_quotes_gpc() && trim(ini_get("magic_quotes_sybase")) == "") {
|
||||||
$dataÊ=Êstripslashes($data);
|
$data = stripslashes($data);
|
||||||
$dataÊ=Êstr_replace("'",Ê"''",Ê$data);
|
$data = str_replace("'", "''", $data);
|
||||||
} elseifÊ(!get_magic_quotes_gpc()) {
|
} elseif (!get_magic_quotes_gpc()) {
|
||||||
$dataÊ=Êstr_replace("'",Ê"''",Ê$data);
|
$data = str_replace("'", "''", $data);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue