Navigation Menu

Skip to content

Commit

Permalink
fix template translation wrapper from ENT_COMPAT to ENT_QUOTES
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Andre Eikeland committed May 29, 2015
1 parent 9661910 commit 60cd612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/common.inc.php
Expand Up @@ -27,7 +27,7 @@ function __($text, $replacements = array(), $html_decode = false)
*/
function __e($text, $replacements = array())
{
return htmlspecialchars(\thebuggenie\core\framework\Context::getI18n()->__($text, $replacements), ENT_COMPAT, \thebuggenie\core\framework\Context::getI18n()->getCharset());
return htmlentities(\thebuggenie\core\framework\Context::getI18n()->__($text, $replacements), ENT_QUOTES, \thebuggenie\core\framework\Context::getI18n()->getCharset());
}

/**
Expand All @@ -39,7 +39,7 @@ function __e($text, $replacements = array())
*/
function tbg_template_escape($text)
{
return htmlspecialchars($text, ENT_COMPAT, \thebuggenie\core\framework\Context::getI18n()->getCharset());
return htmlentities($text, ENT_QUOTES, \thebuggenie\core\framework\Context::getI18n()->getCharset());
}

/**
Expand Down

0 comments on commit 60cd612

Please sign in to comment.