bug #2799009 Login with ipv6 IP address breaks redirect

This commit is contained in:
Herman van Rink
2009-05-31 12:50:52 +00:00
parent ff2131e430
commit 5d6af24268
2 changed files with 7 additions and 3 deletions

View File

@@ -10,6 +10,9 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
thanks to Michael Valushko - dylfin
- bug #2794840 [core] Cannot redeclare pma_tableheader()
3.2.1.0 (not yet released)
- bug #2799009 Login with ipv6 IP address breaks redirect
3.2.0.0 (not yet released)
- [core] better support for vendor customisation (based on what Debian needs)
+ rfe #2127987 warn when session.gc_maxlifetime is less than cookie validity

View File

@@ -603,9 +603,10 @@ class PMA_Config
// Host and port
if (PMA_getenv('HTTP_HOST')) {
if (strpos(PMA_getenv('HTTP_HOST'), ':') !== false) {
list($url['host'], $url['port']) =
explode(':', PMA_getenv('HTTP_HOST'));
// Prepend the scheme before using parse_url() since this is not part of the RFC2616 Host request-header
$parsed_url = parse_url($url['scheme'] . '://' . PMA_getenv('HTTP_HOST'));
if (!empty($parsed_url['host'])) {
$url = $parsed_url;
} else {
$url['host'] = PMA_getenv('HTTP_HOST');
}