diff --git a/includes/types/quest.class.php b/includes/types/quest.class.php index 1b6e6d90..47d53cf3 100644 --- a/includes/types/quest.class.php +++ b/includes/types/quest.class.php @@ -313,7 +313,7 @@ class QuestList extends BaseType if (!$this->curTpl) return null; - $title = htmlentities($this->getField('name', true)); + $title = Util::htmlEscape($this->getField('name', true)); $level = $this->curTpl['level']; if ($level < 0) $level = 0; diff --git a/includes/utilities.php b/includes/utilities.php index ab43276c..d07cd7a3 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -786,7 +786,7 @@ abstract class Util return $data; } - return htmlspecialchars($data, ENT_QUOTES, 'utf-8'); + return htmlspecialchars($data, ENT_QUOTES | ENT_DISALLOWED | ENT_HTML5, 'utf-8'); } public static function jsEscape($data) diff --git a/pages/search.php b/pages/search.php index 111d7001..0a520fff 100644 --- a/pages/search.php +++ b/pages/search.php @@ -198,7 +198,7 @@ class SearchPage extends GenericPage protected function generateTitle() { - array_unshift($this->title, $this->search, Lang::main('search')); + array_unshift($this->title, Util::htmlEscape($this->search), Lang::main('search')); } protected function generatePath() { } diff --git a/template/bricks/head.tpl.php b/template/bricks/head.tpl.php index 1b7efcec..d0086c1a 100644 --- a/template/bricks/head.tpl.php +++ b/template/bricks/head.tpl.php @@ -1,4 +1,4 @@ -