diff --git a/ChangeLog b/ChangeLog index 66599fe2a..64c894389 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ $Source$ * main.php, libraries/select_server.lib.php, libraries/auth/cookie.auth.lib.php: Escape verbose server name (bug #1362671). + * index.php: Avoid XSS on HTTP_HOST. 2005-11-20 Marc Delisle ### 2.7.0-rc1 released diff --git a/index.php b/index.php index f7a0a1d13..d09f5101a 100644 --- a/index.php +++ b/index.php @@ -129,7 +129,7 @@ header('Content-Type: text/html; charset=' . $GLOBALS['charset']); -phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; ?> +phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo htmlspecialchars($HTTP_HOST); ?>