Skip to content

Commit 7e2cafa

Browse files
authored
Add escape to SQLite _listTables()
1 parent 39f4c1b commit 7e2cafa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/SQLite3/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ protected function _escapeString(string $str): string
207207
protected function _listTables(bool $prefixLimit = false): string
208208
{
209209
return 'SELECT "NAME" FROM "SQLITE_MASTER" WHERE "TYPE" = \'table\''
210-
. ' AND "NAME" NOT LIKE \'sqlite_%\''
210+
. ' AND "NAME" NOT LIKE \'sqlite!_%\' ESCAPE \'!\''
211211
. (($prefixLimit !== false && $this->DBPrefix !== '')
212212
? ' AND "NAME" LIKE \'' . $this->escapeLikeString($this->DBPrefix) . '%\' ' . sprintf($this->likeEscapeStr,
213213
$this->likeEscapeChar)

0 commit comments

Comments
 (0)