Skip to content

Commit 63438e7

Browse files
committed
Revert previous commit until safer solution found
1 parent 66003fb commit 63438e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/inc/lib/database.lib.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ public static function escape_sql_wildcards($text)
247247
*/
248248
public static function escape_string($string)
249249
{
250-
return self::getManager()->getConnection()->quote($string);
250+
$string = self::getManager()->getConnection()->quote($string);
251+
252+
return trim($string, "'");
251253
}
252254

253255
/**

0 commit comments

Comments
 (0)