File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
main/inc/lib/pear/HTML/QuickForm Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -419,8 +419,11 @@ public function toHtml()
419
419
if (!empty ($ strValues ) && in_array ($ option ['attr ' ]['value ' ], $ strValues , true )) {
420
420
$ option ['attr ' ]['selected ' ] = 'selected ' ;
421
421
}
422
- $ strHtml .= $ tabs . "<option " . $ this ->_getAttrString ($ option ['attr ' ]) . '> ' .
423
- $ option ['text ' ] . "</option> " ;
422
+ $ strHtml .= $ tabs .Display::tag (
423
+ 'option ' ,
424
+ Security::remove_XSS ($ option ['text ' ]),
425
+ $ option ['attr ' ]
426
+ );
424
427
}
425
428
foreach ($ this ->_optgroups as $ optgroup ) {
426
429
$ strHtml .= $ tabs . '<optgroup label=" ' . $ optgroup ['label ' ] . '"> ' ;
@@ -432,7 +435,11 @@ public function toHtml()
432
435
$ option ['selected ' ] = 'selected ' ;
433
436
}
434
437
435
- $ strHtml .= $ tabs . " <option " . $ this ->_getAttrString ($ option ) . '> ' .$ text . "</option> " ;
438
+ $ strHtml .= $ tabs .Display::tag (
439
+ 'option ' ,
440
+ Security::remove_XSS ($ text ),
441
+ $ option
442
+ );
436
443
}
437
444
$ strHtml .= "</optgroup> " ;
438
445
}
You can’t perform that action at this time.
0 commit comments