Fix XSS on tablename and pred_tablename.
This commit is contained in:
@@ -1598,7 +1598,7 @@ if (empty($adduser) && (! isset($checkprivs) || ! strlen($checkprivs))) {
|
|||||||
$url_dbname = htmlspecialchars(urlencode(str_replace('\_', '_', $dbname)));
|
$url_dbname = htmlspecialchars(urlencode(str_replace('\_', '_', $dbname)));
|
||||||
echo ' <i><a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . $GLOBALS['url_query'] . '&db=' . $url_dbname . '&reload=1">' . htmlspecialchars($dbname) . '</a></i>' . "\n";
|
echo ' <i><a href="' . $GLOBALS['cfg']['DefaultTabDatabase'] . '?' . $GLOBALS['url_query'] . '&db=' . $url_dbname . '&reload=1">' . htmlspecialchars($dbname) . '</a></i>' . "\n";
|
||||||
if (isset($tablename) && strlen($tablename)) {
|
if (isset($tablename) && strlen($tablename)) {
|
||||||
echo ' - ' . $GLOBALS['strTable'] . ' <i><a href="' . $GLOBALS['cfg']['DefaultTabTable'] . '?' . $GLOBALS['url_query'] . '&db=' . $url_dbname . '&table=' . urlencode($tablename) . '&reload=1">' . htmlspecialchars($tablename) . '</a></i>' . "\n";
|
echo ' - ' . $GLOBALS['strTable'] . ' <i><a href="' . $GLOBALS['cfg']['DefaultTabTable'] . '?' . $GLOBALS['url_query'] . '&db=' . $url_dbname . '&table=' . htmlspecialchars(urlencode($tablename)) . '&reload=1">' . htmlspecialchars($tablename) . '</a></i>' . "\n";
|
||||||
}
|
}
|
||||||
unset($url_dbname);
|
unset($url_dbname);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user