Adding fix for #1822

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4378 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-01 03:38:27 +00:00
parent 450a95f4a1
commit 96f8227255

View file

@ -266,7 +266,11 @@ class DboMssql extends DboSource {
$data = $this->boolean((bool)$data);
break;
default:
$data = stripslashes(r("'", "''", $data));
if (get_magic_quotes_gpc()) {
$data = stripslashes(r("'", "''", $data));
} else {
$data = r("'", "''", $data);
}
break;
}
return "'" . $data . "'";