note 125179 rejected from sqlite3.escapestring by cmb

From: Date: Thu, 09 Jul 2020 07:26:56 +0000
Subject: note 125179 rejected from sqlite3.escapestring by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214851@lists.php.net to get a copy of this message
Note Submitter: gniewekciolek at gmail dot com ---- What if we escape \' string with backslash? I don't think it's working. <?php $someQuery = 'WHERE "password"=\'%s\'' $someString = '\\\' OR true=true --'; $escapedString = SQLite3::escapeString('\\\' OR true=true --'); echo sprintf($someQuery, $escapedString); // WHERE "password"='\'' OR true=true --'

« previous php.notes (#214851) next »