Escape verbose server name (bug #1362671).
This commit is contained in:
@@ -12,6 +12,9 @@ $Source$
|
|||||||
ignored for 2.7.0 release.
|
ignored for 2.7.0 release.
|
||||||
* libraries/common.lib.php: Make code more redable, default to MySQL 5.0
|
* libraries/common.lib.php: Make code more redable, default to MySQL 5.0
|
||||||
documentation as it is latest stable version.
|
documentation as it is latest stable version.
|
||||||
|
* main.php, libraries/select_server.lib.php,
|
||||||
|
libraries/auth/cookie.auth.lib.php: Escape verbose server name (bug
|
||||||
|
#1362671).
|
||||||
|
|
||||||
2005-11-20 Marc Delisle <lem9@users.sourceforge.net>
|
2005-11-20 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
### 2.7.0-rc1 released
|
### 2.7.0-rc1 released
|
||||||
|
@@ -266,9 +266,9 @@ if (top != self) {
|
|||||||
}
|
}
|
||||||
echo '>';
|
echo '>';
|
||||||
if ($val['verbose'] != '') {
|
if ($val['verbose'] != '') {
|
||||||
echo $val['verbose'];
|
echo htmlspecialchars($val['verbose']);
|
||||||
} else {
|
} else {
|
||||||
echo $val['host'];
|
echo htmlspecialchars($val['host']);
|
||||||
if (!empty($val['port'])) {
|
if (!empty($val['port'])) {
|
||||||
echo ':' . $val['port'];
|
echo ':' . $val['port'];
|
||||||
}
|
}
|
||||||
|
@@ -45,12 +45,12 @@ if (count($cfg['Servers']) > 1) {
|
|||||||
|
|
||||||
if ($cfg['DisplayServersList']){
|
if ($cfg['DisplayServersList']){
|
||||||
if ($selected && !$show_server_left) {
|
if ($selected && !$show_server_left) {
|
||||||
echo '» <b>' . $label . '</b><br />';
|
echo '» <b>' . htmlspecialchars($label) . '</b><br />';
|
||||||
}else{
|
}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 {
|
} 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']))
|
} // end if (!empty($val['host']))
|
||||||
|
2
main.php
2
main.php
@@ -88,7 +88,7 @@ if ( $server > 0 ) {
|
|||||||
unset($res, $row);
|
unset($res, $row);
|
||||||
|
|
||||||
$full_string = str_replace('%pma_s1%', '<bdo dir="ltr" xml:lang="en">' . PMA_MYSQL_STR_VERSION . '</bdo>', $strMySQLServerProcess);
|
$full_string = str_replace('%pma_s1%', '<bdo dir="ltr" xml:lang="en">' . PMA_MYSQL_STR_VERSION . '</bdo>', $strMySQLServerProcess);
|
||||||
$full_string = str_replace('%pma_s2%', $server_info, $full_string);
|
$full_string = str_replace('%pma_s2%', htmlspecialchars($server_info), $full_string);
|
||||||
$full_string = str_replace('%pma_s3%', htmlspecialchars($mysql_cur_user_and_host), $full_string);
|
$full_string = str_replace('%pma_s3%', htmlspecialchars($mysql_cur_user_and_host), $full_string);
|
||||||
|
|
||||||
echo ' <p><strong>' . $full_string . '</strong></p>' . "\n";
|
echo ' <p><strong>' . $full_string . '</strong></p>' . "\n";
|
||||||
|
Reference in New Issue
Block a user