TemplateHelper: cleanup escape comments

This commit is contained in:
Denis
2014-03-31 07:02:33 +03:00
parent 26d60043a5
commit 5bfdc6465b
+4 -2
View File
@@ -27,11 +27,13 @@ class TemplateHelper
{
$flags = ENT_QUOTES;
// On 5.3 this will return an empty string if the source contents
// are illegal UTF-8 sequences. Oh well, 5.3.
if (defined('ENT_SUBSTITUTE')) {
$flags |= ENT_SUBSTITUTE;
} else {
// This is for 5.3.
// The documentation warns of a potential security issue,
// but it seems it does not apply in our case, because
// we do not blacklist anything anywhere.
$flags |= ENT_IGNORE;
}