Fixes XSS vulnerability in Profiler

This commit is contained in:
Nathan Malcolm 2012-10-03 00:53:20 +01:00
parent 4d3c68129b
commit 2d5cc12b7b
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);