Merge pull request #1305 from nmalcolm/develop

Fixes XSS vulnerability in Profiler
This commit is contained in:
Taylor Otwell 2012-10-02 17:22:11 -07:00
commit 4f8a6724b0
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ public static function query($sql, $bindings, $time)
$binding = Database::connection()->pdo->quote($binding);
$sql = preg_replace('/\?/', $binding, $sql, 1);
$sql = htmlspecialchars($sql);
}
static::$data['queries'][] = array($sql, $time);