Skip to content

Commit 498ca23

Browse files
Added single quotes around hotkey ids
1 parent fb56c55 commit 498ca23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpgsb.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ function deleteRange($range,$mode,$listname)
532532
if (count($buildprefixdel)) {
533533
//Delete all matching hostkey prefixes
534534
mysql_query(
535-
"DELETE FROM `$buildtrunk-prefixes` WHERE `Hostkey` in (" . implode(',', $buildprefixdel) . ")"
535+
"DELETE FROM `$buildtrunk-prefixes` WHERE `Hostkey` in ('" . implode('\',\'', $buildprefixdel) . "')"
536536
);
537537
}
538538

0 commit comments

Comments
 (0)