diff options
Diffstat (limited to 'includes/form.inc')
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 846bcb51f..3840885c1 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -2722,7 +2722,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>'; } |