Skip to content

Commit b944300

Browse files
authored
Merge pull request #14 from Bit-Apps-Pro/fix/sanitize-column
fix: use sanitize_key to sanitize column in where condition
2 parents 8ffec39 + 333a8c0 commit b944300

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)