mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16690] Fix html functions default flag in convertor
PHPBB3-16690
This commit is contained in:
parent
2fd4dbb685
commit
513e62f61d
1 changed files with 12 additions and 0 deletions
|
@ -1468,6 +1468,12 @@ class convertor
|
|||
$value = array($value);
|
||||
}
|
||||
|
||||
// Add ENT_COMPAT default flag to html specialchars/entities functions, see PHPBB3-16690
|
||||
if (in_array($execution, ['htmlspecialchars', 'htmlentities', 'htmlspecialchars_decode', 'html_entitity_decode']))
|
||||
{
|
||||
$value[] = ENT_COMPAT;
|
||||
}
|
||||
|
||||
$value = call_user_func_array($execution, $value);
|
||||
}
|
||||
else if (strpos($type, 'execute') === 0)
|
||||
|
@ -1517,6 +1523,12 @@ class convertor
|
|||
$value = array($value);
|
||||
}
|
||||
|
||||
// Add ENT_COMPAT default flag to html specialchars/entities functions, see PHPBB3-16690
|
||||
if (in_array($execution, ['htmlspecialchars', 'htmlentities', 'htmlspecialchars_decode', 'html_entitity_decode']))
|
||||
{
|
||||
$value[] = ENT_COMPAT;
|
||||
}
|
||||
|
||||
$value = call_user_func_array($execution, $value);
|
||||
}
|
||||
else if (strpos($type, 'execute') === 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue