Skip to content

Commit 1269fe8

Browse files
fix xss vulnerability
1 parent e45964a commit 1269fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: backend/modules/error/actions/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function parse()
6464
SpoonHTTP::setHeadersByCode(404);
6565

6666
// give a nice error, so we can detect which file is missing
67-
echo 'Requested file (' . implode('?', $chunks) . ') not found.';
67+
echo 'Requested file (' . htmlspecialchars($this->getParameter('querystring')) . ') not found.';
6868

6969
// stop script execution
7070
exit;

0 commit comments

Comments
 (0)