Skip to content

Commit 02a3d12

Browse files
committed
[php7] fix an incorrect conversion to mysqli_real_escape_string()
1 parent ece58eb commit 02a3d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Database/mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function escape($string) {
7373
if (is_null($string))
7474
return 'NULL';
7575
// Just a string
76-
return str_replace('?', '\\?', "'".mysqli_real_escape_string($string, $this->dbh)."'");
76+
return str_replace('?', '\\?', "'".mysqli_real_escape_string($this->dbh, $string)."'");
7777
}
7878

7979
/**

0 commit comments

Comments
 (0)