mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
BUGFIX: fixed broken addslashes
This commit is contained in:
parent
21b512a4e7
commit
bc1cd7008e
@ -99,7 +99,7 @@ class SQLitePDODatabase extends SQLite3Database {
|
|||||||
* This will return text which has been escaped in a database-friendly manner
|
* This will return text which has been escaped in a database-friendly manner
|
||||||
*/
|
*/
|
||||||
function addslashes($value){
|
function addslashes($value){
|
||||||
return sqlite_escape_string($value);
|
return str_replace("'", "''", $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user