Skip to content

Commit 11271b8

Browse files
committed
Merge pull request php-debugbar#45 from barryvdh/pdo-escaping2
Escape PDO Params
2 parents 34d6037 + f7ee6d4 commit 11271b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DebugBar/DataCollector/PDO/TracedStatement.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ public function getRowCount()
115115
*/
116116
public function getParameters()
117117
{
118-
return $this->parameters;
118+
$params = array();
119+
foreach($this->parameters as $param){
120+
$params[] = htmlentities($param, ENT_QUOTES, 'UTF-8', false);
121+
}
122+
return $params;
119123
}
120124

121125
/**

0 commit comments

Comments
 (0)