Skip to content

Commit

Permalink
[-] FO : Fix backslashes for smartyTranslate and js=1
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jan 9, 2013
1 parent 9771af9 commit 06b339f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/smartyfront.config.inc.php
Expand Up @@ -63,6 +63,6 @@ function smartyTranslate($params, &$smarty)
if ($params['sprintf'] !== null)
$msg = Translate::checkAndReplaceArgs($msg, $params['sprintf']);

return $params['js'] ? addslashes($msg) : $msg;
return $params['js'] ? $msg : Tools::safeOutput($msg);
}

0 comments on commit 06b339f

Please sign in to comment.