Merge pull request #20 from phpmyadmin/xss-host

Urlencode hostname
This commit is contained in:
Michal Čihař 2016-02-25 11:57:24 +01:00
commit 155876b48f

View File

@ -1291,7 +1291,7 @@ class PMA_Config
$pma_absolute_uri .= '@';
}
// Add hostname
$pma_absolute_uri .= $url['host'];
$pma_absolute_uri .= urlencode($url['host']);
// Add port, if it not the default one
if (! empty($url['port'])
&& (($url['scheme'] == 'http' && $url['port'] != 80)