Skip to content

v1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Aug 17:03

1.1

  • SQL injection in $this->db->query() now covers the whole concatenated query instead of each string
    separately, so a normal OpenCart query is no longer reported as broken SQL. DB_PREFIX is replaced
    by the table prefix from config.php, and other expressions become placeholders that keep the
    statement parseable.
  • Queries written with interpolation ("select * from {$table} where id = " . (int)$id) keep their
    highlighting as well: the interpolated parts become placeholders chosen by their position, so a
    table name reads as a name and a value as a bound parameter.
  • With several stores in one project each query uses the prefix of the installation its file belongs
    to, rather than whichever DB_PREFIX the index happens to resolve.