Fix XSS on database comment, thanks to laurent gaffié.
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
|||||||
* Documentation.html, libraries/ip_allow_deny.lib.php: Define headers
|
* Documentation.html, libraries/ip_allow_deny.lib.php: Define headers
|
||||||
which to trust in configuration, thanks for help with this to Christian
|
which to trust in configuration, thanks for help with this to Christian
|
||||||
Schmidt, Peytz & Co.
|
Schmidt, Peytz & Co.
|
||||||
|
* libraries/common.lib.php: Fix XSS on database comment, thanks to laurent
|
||||||
|
gaffié.
|
||||||
|
|
||||||
2006-11-18 Marc Delisle <lem9@users.sourceforge.net>
|
2006-11-18 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* index.php, libraries/common.lib.php: undefined index
|
* index.php, libraries/common.lib.php: undefined index
|
||||||
|
@@ -180,11 +180,11 @@ function PMA_getHtmlSelectDb($selected = '')
|
|||||||
}
|
}
|
||||||
foreach ($dbs as $db) {
|
foreach ($dbs as $db) {
|
||||||
$return .= '<option value="' . $db['name'] . '"'
|
$return .= '<option value="' . $db['name'] . '"'
|
||||||
.' title="' . $db['comment'] . '"';
|
.' title="' . htmlspecialchars($db['comment']) . '"';
|
||||||
if ($db['name'] == $selected) {
|
if ($db['name'] == $selected) {
|
||||||
$return .= ' selected="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";
|
.' (' . $db['num_tables'] . ')</option>' . "\n";
|
||||||
}
|
}
|
||||||
if (count($dbs) > 1) {
|
if (count($dbs) > 1) {
|
||||||
|
Reference in New Issue
Block a user