summaryrefslogtreecommitdiffstats
path: root/includes/form.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 8ac40c9..e9ac8e4 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -1484,7 +1484,7 @@ function form_select_options($element, $choices = NULL) {
$options = '';
foreach ($choices as $key => $choice) {
if (is_array($choice)) {
- $options .= '<optgroup label="'. $key .'">';
+ $options .= '<optgroup label="'. check_plain($key) .'">';
$options .= form_select_options($element, $choice);
$options .= '</optgroup>';
}