mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 20:31:41 +02:00
Corrected toAttribute method. <select> item was not respecting attributes when using renderElement().
This commit is contained in:
@@ -1984,7 +1984,6 @@ class e_parse extends e_parser
|
||||
// Xhtml compliance.
|
||||
$text = htmlspecialchars($text, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
|
||||
if(!preg_match('/&#|\'|"|<|>/s', $text))
|
||||
{
|
||||
$text = $this->replaceConstants($text);
|
||||
@@ -1992,7 +1991,7 @@ class e_parse extends e_parser
|
||||
}
|
||||
else
|
||||
{
|
||||
return '';
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user