Escape verbose server name (bug #1362671).
This commit is contained in:
@@ -45,12 +45,12 @@ if (count($cfg['Servers']) > 1) {
|
||||
|
||||
if ($cfg['DisplayServersList']){
|
||||
if ($selected && !$show_server_left) {
|
||||
echo '» <b>' . $label . '</b><br />';
|
||||
echo '» <b>' . htmlspecialchars($label) . '</b><br />';
|
||||
}else{
|
||||
echo '» <a class="item" href="index.php?server=' . $key . '&lang=' . $lang . '&convcharset=' . $convcharset . '" target="_top">' . $label . '</a><br />';
|
||||
echo '» <a class="item" href="index.php?server=' . $key . '&lang=' . $lang . '&convcharset=' . $convcharset . '" target="_top">' . htmlspecialchars($label) . '</a><br />';
|
||||
}
|
||||
} else {
|
||||
echo ' <option value="' . $key . '" ' . ($selected ? ' selected="selected"' : '') . '>' . $label . '</option>' . "\n";
|
||||
echo ' <option value="' . $key . '" ' . ($selected ? ' selected="selected"' : '') . '>' . htmlspecialchars($label) . '</option>' . "\n";
|
||||
}
|
||||
|
||||
} // end if (!empty($val['host']))
|
||||
|
Reference in New Issue
Block a user