1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Merge pull request #4547 from Deltik/fix/4546

Deprecate `e_parse::toJS()`
This commit is contained in:
Cameron
2021-09-15 12:18:41 -07:00
committed by GitHub
17 changed files with 68 additions and 39 deletions

View File

@@ -3907,8 +3907,7 @@ var_dump($select_options);*/
//
foreach ($options as $option => $optval)
{
$optval = trim((string) $optval);
$optval = htmlspecialchars($optval, ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
$optval = htmlspecialchars(trim((string) $optval), ENT_COMPAT | ENT_HTML401, 'UTF-8', false);
switch ($option)
{