Browse Source

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

Fixed bug where the profiler did not correctly put quotes around bindings
Dayle Rees 12 years ago
parent
commit
a0fd22f6f1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      laravel/profiling/profiler.php

+ 3 - 0
laravel/profiling/profiler.php

@@ -5,6 +5,7 @@ use Laravel\File;
 use Laravel\Event;
 use Laravel\Config;
 use Laravel\Request;
+use Laravel\Database;
 
 class Profiler {
 
@@ -57,6 +58,8 @@ class Profiler {
 	{
 		foreach ($bindings as $binding)
 		{
+			$binding = Database::connection()->pdo->quote($binding);
+
 			$sql = preg_replace('/\?/', $binding, $sql, 1);
 		}