Skip to content

Commit 0e34bad

Browse files
author
Till Brehm
committed
Fixed: FS#3718 - SQL injection checker false positive alert in APS installer
1 parent 67feded commit 0e34bad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

interface/lib/classes/db_mysql.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ private function securityScan($string) {
132132

133133
if($ids_config['sql_scan_enabled'] == 'yes') {
134134

135+
// Remove whitespace
136+
$string = trim($string);
137+
if(substr($string,-1) == ';') $string = substr($string,0,-1);
138+
139+
// Save original string
135140
$string_orig = $string;
136141

137142
//echo $string;

0 commit comments

Comments
 (0)