Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 9148049

Browse files
author
Jamie Snape
committed
Escape variables in landingpage module
1 parent c8c82e3 commit 9148049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/landingpage/controllers/IndexCoreController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function indexAction()
3737
$textDaos = $this->Landingpage_Text->getAll();
3838
if (isset($textDaos[0])) {
3939
$textDao = $textDaos[0];
40-
$this->view->landingText = UtilityComponent::markdown($textDao->getText());
40+
$this->view->landingText = UtilityComponent::markdown(htmlspecialchars($textDao->getText(), ENT_QUOTES, 'UTF-8'));
4141
} else {
4242
$this->callCoreAction();
4343
}

0 commit comments

Comments
 (0)