1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

Escape params

Escape the params, to prevent html leaking.
This commit is contained in:
Barry vd. Heuvel 2013-11-04 21:53:36 +01:00
parent 71be65fdcd
commit d98b73914d

View File

@ -115,7 +115,10 @@ class TracedStatement
*/ */
public function getParameters() public function getParameters()
{ {
return $this->parameters; $params = array();
foreach($this->parameters as $param){
$params[] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
}
} }
/** /**