1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 05:18:32 +01:00

Merge pull request #45 from barryvdh/pdo-escaping2

Escape PDO Params
This commit is contained in:
Maxime Bouroumeau-Fuseau 2013-11-08 09:24:28 -08:00
commit 11271b8281

View File

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