diff --git a/backend/core/engine/base.php b/backend/core/engine/base.php index 60897359c6..0d3b216717 100644 --- a/backend/core/engine/base.php +++ b/backend/core/engine/base.php @@ -11,6 +11,7 @@ * This class implements a lot of functionality that can be extended by a specific action * * @author Tijs Verkoyen + * @author Frederik Heyninck */ class BackendBaseAction { @@ -168,21 +169,21 @@ public function execute() $this->tpl->assign('report', true); // camelcase the string - $messageName = SpoonFilter::toCamelCase($this->getParameter('report'), '-'); + $messageName = SpoonFilter::toCamelCase(SpoonFilter::stripHTML($this->getParameter('report')), '-'); // if we have data to use it will be passed as the var parameter if(!empty($var)) $this->tpl->assign('reportMessage', vsprintf(BL::msg($messageName), $var)); else $this->tpl->assign('reportMessage', BL::msg($messageName)); // highlight an element with the given id if needed - if($this->getParameter('highlight')) $this->tpl->assign('highlight', $this->getParameter('highlight')); + if($this->getParameter('highlight')) $this->tpl->assign('highlight', SpoonFilter::stripHTML($this->getParameter('highlight'))); } // is there an error to show? if($this->getParameter('error') !== null) { // camelcase the string - $errorName = SpoonFilter::toCamelCase($this->getParameter('error'), '-'); + $errorName = SpoonFilter::toCamelCase(SpoonFilter::stripHTML($this->getParameter('error')), '-'); // if we have data to use it will be passed as the var parameter if(!empty($var)) $this->tpl->assign('errorMessage', vsprintf(BL::err($errorName), $var));