Skip to content
Permalink
Browse files Browse the repository at this point in the history
Make sure the error doesn't contain any html tags.
  • Loading branch information
Bauffman committed Feb 14, 2012
1 parent c8ec9c5 commit d65c083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/engine/base.php
Expand Up @@ -165,7 +165,7 @@ public function execute()
if($this->getParameter('error') !== null)
{
// camelcase the string
$errorName = SpoonFilter::toCamelCase($this->getParameter('error'), '-');
$errorName = strip_tags(SpoonFilter::toCamelCase($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));
Expand Down

0 comments on commit d65c083

Please sign in to comment.