Use DB::escape() shortcut in profiler.
This commit is contained in:
parent
1081ac1b8a
commit
d7dfd4f915
|
@ -145,7 +145,7 @@ public static function query($sql, $bindings, $time)
|
|||
{
|
||||
foreach ($bindings as $binding)
|
||||
{
|
||||
$binding = Database::connection()->pdo->quote($binding);
|
||||
$binding = Database::escape($binding);
|
||||
|
||||
$sql = preg_replace('/\?/', $binding, $sql, 1);
|
||||
$sql = htmlspecialchars($sql);
|
||||
|
|
Loading…
Reference in New Issue