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:
parent
71be65fdcd
commit
d98b73914d
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user