Use DB::escape() shortcut in profiler.
This commit is contained in:
@@ -145,7 +145,7 @@ class Profiler {
|
||||
{
|
||||
foreach ($bindings as $binding)
|
||||
{
|
||||
$binding = Database::connection()->pdo->quote($binding);
|
||||
$binding = Database::escape($binding);
|
||||
|
||||
$sql = preg_replace('/\?/', $binding, $sql, 1);
|
||||
$sql = htmlspecialchars($sql);
|
||||
|
||||
Reference in New Issue
Block a user