From: Jan Schneider Date: Wed, 3 Nov 2010 14:41:30 +0000 (+0100) Subject: Fix Horde::url() calls with full paths, but without requesting full URLs. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5b7205d9072011dac1a0fd96528be3fd3ff6988b;p=horde.git Fix Horde::url() calls with full paths, but without requesting full URLs. --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 25af46634..7b32547ea 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -969,6 +969,8 @@ HTML; } $url = $protocol . '://' . $server_name; + } elseif (isset($puri['scheme'])) { + $url = $puri['scheme'] . '://' . $puri['host']; } if (isset($puri['path']) && substr($puri['path'], 0, 1) == '/' && !preg_match('|^([\w+-]{1,20})://|', $webroot)) {