*/
protected function output_optgroup($groupname, $users, $select) {
if (!empty($users)) {
- $output = ' <optgroup label="' . s($groupname) . ' (' . count($users) . ')">' . "\n";
+ $output = ' <optgroup label="' . htmlspecialchars($groupname) . ' (' . count($users) . ')">' . "\n";
foreach ($users as $user) {
$attributes = '';
if (!empty($user->disabled)) {
$this->output_user($user) . "</option>\n";
}
} else {
- $output = ' <optgroup label="' . s($groupname) . '">' . "\n";
+ $output = ' <optgroup label="' . htmlspecialchars($groupname) . '">' . "\n";
$output .= ' <option disabled="disabled"> </option>' . "\n";
}
$output .= " </optgroup>\n";