Skip to content

Commit 4f8a672

Browse files
committed
Merge pull request laravel#1305 from nmalcolm/develop
Fixes XSS vulnerability in Profiler
2 parents 4d3c681 + 2d5cc12 commit 4f8a672

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

laravel/profiling/profiler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ public static function query($sql, $bindings, $time)
148148
$binding = Database::connection()->pdo->quote($binding);
149149

150150
$sql = preg_replace('/\?/', $binding, $sql, 1);
151+
$sql = htmlspecialchars($sql);
151152
}
152153

153154
static::$data['queries'][] = array($sql, $time);

0 commit comments

Comments
 (0)