Commit 72444058 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1806 from Gargron/patch-1

Fix for double escaping of queries in the profiler
parents 60ad02ad 944d98d1
...@@ -148,7 +148,7 @@ class Profiler { ...@@ -148,7 +148,7 @@ class Profiler {
$binding = Database::escape($binding); $binding = Database::escape($binding);
$sql = preg_replace('/\?/', $binding, $sql, 1); $sql = preg_replace('/\?/', $binding, $sql, 1);
$sql = htmlspecialchars($sql); $sql = htmlspecialchars($sql, ENT_QUOTES, 'UTF-8', false);
} }
static::$data['queries'][] = array($sql, $time); static::$data['queries'][] = array($sql, $time);
......
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