opencart/opencart — pull request #2050 by stan-bg (2014-10-19 11:09:12+00:00)
Title: Minor code optimization

Also $data['route'] should be escaped.
For example:
index.php?route=error/not_found\ -> "Error: You have an error in your SQL syntax; bla bla"