From 5b7205d9072011dac1a0fd96528be3fd3ff6988b Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 3 Nov 2010 15:41:30 +0100 Subject: [PATCH] Fix Horde::url() calls with full paths, but without requesting full URLs. --- framework/Core/lib/Horde.php | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- 2.11.0