Misc/Fixup

* fix external links by escaping quest name as javascript
This commit is contained in:
Sarjuuk
2025-02-27 02:29:53 +01:00
parent 6660125154
commit a5bd6ddc8a

View File

@@ -954,7 +954,7 @@ class QuestPage extends GenericPage
BUTTON_LINKS => array( BUTTON_LINKS => array(
'linkColor' => 'ffffff00', 'linkColor' => 'ffffff00',
'linkId' => 'quest:'.$this->typeId.':'.$_level, 'linkId' => 'quest:'.$this->typeId.':'.$_level,
'linkName' => Util::htmlEscape($this->subject->getField('name', true)), 'linkName' => Util::jsEscape($this->subject->getField('name', true)),
'type' => $this->type, 'type' => $this->type,
'typeId' => $this->typeId 'typeId' => $this->typeId
) )