mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 03:33:01 +02:00
Resolved 0000738: Double port on url
Merge branch-1_7 2048:2050 into BSF git-svn-id: http://piwigo.org/svn/trunk@2083 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -61,9 +61,13 @@ function get_absolute_root_url($with_scheme=true)
|
|||||||
if ($with_scheme)
|
if ($with_scheme)
|
||||||
{
|
{
|
||||||
$url .= 'http://'.$_SERVER['HTTP_HOST'];
|
$url .= 'http://'.$_SERVER['HTTP_HOST'];
|
||||||
if ($_SERVER['SERVER_PORT']!=80)
|
if ($_SERVER['SERVER_PORT'] != 80)
|
||||||
{
|
{
|
||||||
$url .= ':'.$_SERVER['SERVER_PORT'];
|
$url_port = ':'.$_SERVER['SERVER_PORT'];
|
||||||
|
if (strrchr($url, ':') != $url_port)
|
||||||
|
{
|
||||||
|
$url .= $url_port;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$url .= cookie_path();
|
$url .= cookie_path();
|
||||||
|
|||||||
Reference in New Issue
Block a user