Fix XSS on database comment, thanks to laurent gaffié.
This commit is contained in:
@@ -180,11 +180,11 @@ function PMA_getHtmlSelectDb($selected = '')
|
||||
}
|
||||
foreach ($dbs as $db) {
|
||||
$return .= '<option value="' . $db['name'] . '"'
|
||||
.' title="' . $db['comment'] . '"';
|
||||
.' title="' . htmlspecialchars($db['comment']) . '"';
|
||||
if ($db['name'] == $selected) {
|
||||
$return .= ' selected="selected"';
|
||||
}
|
||||
$return .= '>' . ($cut ? $db['disp_name_cut'] : $db['disp_name'])
|
||||
$return .= '>' . htmlspecialchars($cut ? $db['disp_name_cut'] : $db['disp_name'])
|
||||
.' (' . $db['num_tables'] . ')</option>' . "\n";
|
||||
}
|
||||
if (count($dbs) > 1) {
|
||||
|
Reference in New Issue
Block a user