From cf739b35682305e69a8218731507084535d5e846 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 3 Jul 2015 21:04:24 +0800 Subject: [PATCH] better patch for the XSS search issue Since the query string could be output when displaying the results too --- docs/search.php.code.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/search.php.code.in b/docs/search.php.code.in index 84f87591d..c7511c378 100644 --- a/docs/search.php.code.in +++ b/docs/search.php.code.in @@ -9,11 +9,12 @@ $scope = ltrim ($scope); if ($scope == "") $scope = "any"; + $querystr = htmlspecialchars($query, ENT_QUOTES, 'UTF-8'); ?>
- +