Commit a0fd22f6 by Dayle Rees

Merge pull request #772 from loic-sharma/patch-3

Fixed bug where the profiler did not correctly put quotes around bindings
parents 01f83234 f2e915f1
...@@ -5,6 +5,7 @@ use Laravel\File; ...@@ -5,6 +5,7 @@ use Laravel\File;
use Laravel\Event; use Laravel\Event;
use Laravel\Config; use Laravel\Config;
use Laravel\Request; use Laravel\Request;
use Laravel\Database;
class Profiler { class Profiler {
...@@ -57,6 +58,8 @@ class Profiler { ...@@ -57,6 +58,8 @@ class Profiler {
{ {
foreach ($bindings as $binding) foreach ($bindings as $binding)
{ {
$binding = Database::connection()->pdo->quote($binding);
$sql = preg_replace('/\?/', $binding, $sql, 1); $sql = preg_replace('/\?/', $binding, $sql, 1);
} }
......
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