Skip to content
Snippets Groups Projects
Commit 0a52aac8 authored by Jared Hancock's avatar Jared Hancock
Browse files

xss: Properly escape choices when rendered

parent 0ec7cf62
No related branches found
No related tags found
No related merge requests found
......@@ -1920,7 +1920,7 @@ class ChoicesWidget extends Widget {
continue; ?>
<option value="<?php echo $key; ?>" <?php
if (isset($values[$key])) echo 'selected="selected"';
?>><?php echo $name; ?></option>
?>><?php echo Format::htmlchars($name); ?></option>
<?php } ?>
</select>
<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment