Skip to content

Commit

Permalink
Merge pull request #2230 from MGatner/sqlite-listtables-escaped
Browse files Browse the repository at this point in the history
Add escape to SQLite _listTables()
  • Loading branch information
MGatner authored Sep 17, 2019
2 parents 39f4c1b + 7e2cafa commit 89b6bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/SQLite3/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ protected function _escapeString(string $str): string
protected function _listTables(bool $prefixLimit = false): string
{
return 'SELECT "NAME" FROM "SQLITE_MASTER" WHERE "TYPE" = \'table\''
. ' AND "NAME" NOT LIKE \'sqlite_%\''
. ' AND "NAME" NOT LIKE \'sqlite!_%\' ESCAPE \'!\''
. (($prefixLimit !== false && $this->DBPrefix !== '')
? ' AND "NAME" LIKE \'' . $this->escapeLikeString($this->DBPrefix) . '%\' ' . sprintf($this->likeEscapeStr,
$this->likeEscapeChar)
Expand Down

0 comments on commit 89b6bb9

Please sign in to comment.