Merge pull request #1806 from Gargron/patch-1
Fix for double escaping of queries in the profiler
This commit is contained in:
commit
7244405868
|
@ -146,9 +146,9 @@ public static function query($sql, $bindings, $time)
|
|||
foreach ($bindings as $binding)
|
||||
{
|
||||
$binding = Database::escape($binding);
|
||||
|
||||
|
||||
$sql = preg_replace('/\?/', $binding, $sql, 1);
|
||||
$sql = htmlspecialchars($sql);
|
||||
$sql = htmlspecialchars($sql, ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
|
||||
static::$data['queries'][] = array($sql, $time);
|
||||
|
|
Loading…
Reference in New Issue