Sanitize HTML in html_select_options

This commit is contained in:
Lukas Reschke 2013-02-28 17:19:04 +01:00
parent 2f036bcc54
commit cef6131ea8
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ function html_select_options($options, $selected, $params=array()) {
$label = $label[$label_name];
}
$select = in_array($value, $selected) ? ' selected="selected"' : '';
$html .= '<option value="' . $value . '"' . $select . '>' . $label . '</option>'."\n";
$html .= '<option value="' . OC_Util::sanitizeHTML($value) . '"' . $select . '>' . OC_Util::sanitizeHTML($label) . '</option>'."\n";
}
return $html;
}