diff --git a/Sources/Subs-Db-mysql.php b/Sources/Subs-Db-mysql.php index 5972028c4f..38cb43b01d 100644 --- a/Sources/Subs-Db-mysql.php +++ b/Sources/Subs-Db-mysql.php @@ -368,14 +368,12 @@ function smf_db_query($identifier, $db_string, $db_values = array(), $connection // Comments that are allowed in a query are preg_removed. static $allowed_comments_from = array( - '~(? 2 || strpos($clean, '--') !== false || strpos($clean, ';') !== false) diff --git a/Sources/Subs-Db-postgresql.php b/Sources/Subs-Db-postgresql.php index acca1a3eb7..6eaf3aae07 100644 --- a/Sources/Subs-Db-postgresql.php +++ b/Sources/Subs-Db-postgresql.php @@ -379,14 +379,12 @@ function smf_db_query($identifier, $db_string, $db_values = array(), $connection // Comments that are allowed in a query are preg_removed. static $allowed_comments_from = array( - '~(? 2 || strpos($clean, '--') !== false || strpos($clean, ';') !== false)