mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
⬆️ N°4770 Update to latest Symfony 3.4
This commit is contained in:
@@ -243,9 +243,9 @@ class FormHelper extends Helper
|
||||
public function formEncodeCurrency($text, $widget = '')
|
||||
{
|
||||
if ('UTF-8' === $charset = $this->getCharset()) {
|
||||
$text = htmlspecialchars($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
|
||||
$text = htmlspecialchars($text, \ENT_QUOTES | \ENT_SUBSTITUTE, 'UTF-8');
|
||||
} else {
|
||||
$text = htmlentities($text, ENT_QUOTES | (\defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0), 'UTF-8');
|
||||
$text = htmlentities($text, \ENT_QUOTES | \ENT_SUBSTITUTE, 'UTF-8');
|
||||
$text = iconv('UTF-8', $charset, $text);
|
||||
$widget = iconv('UTF-8', $charset, $widget);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user