Merge pull request #1989 from owncloud/selectSanitize
Sanitize HTML in html_select_options
This commit is contained in:
commit
1cc7e6d31a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue