Commit 61aa2a50 authored by Rémi Gaillard's avatar Rémi Gaillard

// add some chars to the rtrim bce562f0

parent bce562f0
......@@ -547,7 +547,7 @@ abstract class DbCore
if ($sql instanceof DbQuery)
$sql = $sql->build();
$sql = rtrim($sql, ';').' LIMIT 1';
$sql = rtrim($sql, " \t\n\r\0\x0B;").' LIMIT 1';
$this->result = false;
$this->last_query = $sql;
if ($use_cache && $this->is_cache_enabled && ($result = Cache::getInstance()->get(Tools::encryptIV($sql))) !== false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment