mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
MINOR: allow backslashes
This commit is contained in:
parent
8f3b255c5e
commit
bff9718dd6
@ -1251,7 +1251,7 @@ class MSSQLDatabase extends SS_Database {
|
||||
* Using PHP's addslashes method won't work in MSSQL
|
||||
*/
|
||||
function addslashes($value){
|
||||
$value=stripslashes($value);
|
||||
// $value=stripslashes($value);
|
||||
$value=str_replace("'","''",$value);
|
||||
$value=str_replace("\0","[NULL]",$value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user