Permalink
Browse files

weblib MDL-20725 Fixed string formatting issue in nested selects

  • Loading branch information...
1 parent 0402b9d commit c12167467e85e446d1d1173397857604ff15e432 Sam Hemelryk committed Dec 3, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/weblib.php
View
@@ -1007,7 +1007,7 @@ function choose_from_menu_nested($options,$name,$selected='',$nothing='choose',$
}
if (!empty($options)) {
foreach ($options as $section => $values) {
- $output .= ' <optgroup label="'. format_string($section) .'">'."\n";
+ $output .= ' <optgroup label="'. s(strip_tags(format_string($section))) .'">'."\n";
foreach ($values as $value => $label) {
$output .= ' <option value="'. format_string($value) .'"';
if ((string)$value == (string)$selected) {

0 comments on commit c121674

Please sign in to comment.