Fix reflective XSS

This commit is contained in:
timstoffel
2019-06-17 18:15:58 +02:00
parent acd661d7f1
commit 32f99b1214

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;