Merge pull request #54 from timstoffel/master

Reflective XSS in searchbox module
This commit is contained in:
Paweł Klockiewicz
2019-06-17 18:21:19 +02:00
committed by GitHub

View File

@@ -34,6 +34,8 @@
public function getSearch($phrase, $index = 1)
{
$phrase = urldecode($phrase);
$phrase = strip_tags ($phrase);
$phrase = htmlentities ($phrase);
$searchTemplate = 'search.html';
$phraseMinLength = 3;