Skip to content

Commit 355972f

Browse files
authored
Merge pull request #199 from kkmuffme/fix-invalid-regex-for-update
remove wrong duplicate escape
2 parents 671afe9 + e85fbe4 commit 355972f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ludicrousdb/includes/class-ludicrousdb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ public function query( $query ) {
18721872
if ( preg_match( '/^\s*(create|alter|truncate|drop)\s/i', $query ) ) {
18731873
$retval = $this->result;
18741874

1875-
} elseif ( preg_match( '/^\\s*(insert|delete|update|replace|alter) /i', $query ) ) {
1875+
} elseif ( preg_match( '/^\s*(insert|delete|update|replace|alter) /i', $query ) ) {
18761876
$this->rows_affected = mysqli_affected_rows( $this->dbh );
18771877

18781878
// Take note of the insert_id

0 commit comments

Comments
 (0)