mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
#4572: e_form
: No htmlspecialchars()
on "other" attributes
Fixes: #4572 Discussion: https://github.com/e107inc/e107/pull/4554#issuecomment-926113601
This commit is contained in:
@@ -3907,7 +3907,10 @@ var_dump($select_options);*/
|
||||
//
|
||||
foreach ($options as $option => $optval)
|
||||
{
|
||||
$optval = htmlspecialchars(trim((string) $optval), ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
|
||||
if ($option !== 'other')
|
||||
{
|
||||
$optval = htmlspecialchars(trim((string) $optval), ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
|
||||
}
|
||||
switch ($option)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user