mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +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);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue