Skip to content

Commit

Permalink
escape ORDER BY (#71)
Browse files Browse the repository at this point in the history
may closes #57
  • Loading branch information
Alexander Walther authored Aug 22, 2022
1 parent 3cb31fa commit bbc7268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Watson/Workflows/YForm/YFormSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function fire(Command $command)
SELECT '.$selectFields.'
FROM `'.$table.'`
WHERE '.$command->getSqlWhere($searchFields).'
ORDER BY '.$orderByField;
ORDER BY `'.$orderByField.'`';

$results[$table->getTableName()] = $this->getDatabaseResults($query);
}
Expand Down

0 comments on commit bbc7268

Please sign in to comment.