diff options
author | Robin Appelman <robin@icewind.nl> | 2017-01-26 12:15:26 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-03-30 11:14:59 +0200 |
commit | 3355fd549f71328afb11f6c07c936219eeaa6059 (patch) | |
tree | a408efd7c62958a8faaf01278543e08aaf22df57 /lib/private/DB/AdapterSqlite.php | |
parent | 07449a4885c3d97cd8891cbf524d9bda8d518deb (diff) | |
download | nextcloud-server-3355fd549f71328afb11f6c07c936219eeaa6059.tar.gz nextcloud-server-3355fd549f71328afb11f6c07c936219eeaa6059.zip |
dont double escape
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB/AdapterSqlite.php')
-rw-r--r-- | lib/private/DB/AdapterSqlite.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/private/DB/AdapterSqlite.php b/lib/private/DB/AdapterSqlite.php index 7a69cb7e8c2..5507699c54a 100644 --- a/lib/private/DB/AdapterSqlite.php +++ b/lib/private/DB/AdapterSqlite.php @@ -41,7 +41,6 @@ class AdapterSqlite extends Adapter { } public function fixupStatement($statement) { - $statement = preg_replace('( I?LIKE \?)', '$0 ESCAPE \'\\\'', $statement); $statement = preg_replace('/`(\w+)` ILIKE \?/', 'LOWER($1) LIKE LOWER(?)', $statement); $statement = str_replace( '`', '"', $statement ); $statement = str_ireplace( 'NOW()', 'datetime(\'now\')', $statement ); |