Skip to content

Commit 24eab8a

Browse files
Kobus Myburghchriskacerguis
authored andcommitted
Attempt to fix issue 1069 - XSS filtering
1 parent f05eafe commit 24eab8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/RestController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,9 @@ public function head($key = null, $xss_clean = null)
14111411
public function post($key = null, $xss_clean = null)
14121412
{
14131413
if ($key === null) {
1414+
foreach (new RecursiveIteratorIterator(new RecursiveArrayIterator($this->_post_args), RecursiveIteratorIterator::CATCH_GET_CHILD) as $key => $value) {
1415+
$this->_post_args[$key] = $this->_xss_clean($this->_post_args[$key], $xss_clean);
1416+
}
14141417
return $this->_post_args;
14151418
}
14161419

0 commit comments

Comments
 (0)