Skip to content

Commit 333a8c0

Browse files
authored
fix: use sanitize_key to sanitize column in where condition
Signed-off-by: Shuvo Mohajan <[email protected]>
1 parent 8ffec39 commit 333a8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ private function getFrom()
13681368
private function prepareColumnForWhere($clause)
13691369
{
13701370
if (isset($clause['column'])) {
1371-
return ' ' . $clause['column'];
1371+
return ' ' . sanitize_key($clause['column']);
13721372
}
13731373
}
13741374

0 commit comments

Comments
 (0)