Vulnerability to SQL injection even when SQLite3::escapeString() is used and no user input is asked?
问题 I am referring to this answer of mine to another question, which another user criticized because vulnerable to SQL injection, even if no user input is requested and escape procedure is called. The following code is used to create a .sql dump of an SQLite database, using only PHP code with no call to sqlite3 tool (which was the original request of the author of the question). <?php $db = new SQLite3(dirname(__FILE__)."/your/db.sqlite"); $db->busyTimeout(5000); $sql=""; $tables=$db->query(