Skip to content

Commit f2e915f

Browse files
committed
Improved the way the quotes were added to the bindings.
1 parent ea3021f commit f2e915f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

laravel/profiling/profiler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Laravel\Event;
66
use Laravel\Config;
77
use Laravel\Request;
8+
use Laravel\Database;
89

910
class Profiler {
1011

@@ -54,7 +55,7 @@ public static function query($sql, $bindings, $time)
5455
{
5556
foreach ($bindings as $binding)
5657
{
57-
$binding = "'{$binding}'";
58+
$binding = Database::connection()->pdo->quote($binding);
5859

5960
$sql = preg_replace('/\?/', $binding, $sql, 1);
6061
}

0 commit comments

Comments
 (0)