Skip to content

Commit 66003fb

Browse files
committed
Remove excessive SQL quotes filtering adding risk to queries - refs BT#13285
1 parent 8bb1353 commit 66003fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main/inc/lib/database.lib.php

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

255253
/**

0 commit comments

Comments
 (0)