1. Add curly braces to table names
2. Determine what to do with operators supplied by a developer/user
Currently there's no validation performed on the supplied operators, which could be anything. Perhaps establishing a whiltelist would be best. See Condition.php ( \Drupal\Core\Entity\Query\Sql\Condition )
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Database%... ( \Drupal\Core\Database\Query\Condition )
Comments
Comment #2
imclean commentedComment #3
imclean commentedAdd curly braces and ignore condition if the operator contains suspect characters.
Comment #5
imclean commented