diff options
Diffstat (limited to 'idiorm.php')
-rw-r--r-- | idiorm.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -271,6 +271,9 @@ // Escape the parameters $parameters = array_map(array(self::$_db, 'quote'), $parameters); + // Avoid %format collision for vsprintf + $query = str_replace("%", "%%", $query); + // Replace placeholders in the query for vsprintf $query = str_replace("?", "%s", $query); |