Fix Horde::url() calls with full paths, but without requesting full URLs.
authorJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 14:41:30 +0000 (15:41 +0100)
committerJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 14:42:16 +0000 (15:42 +0100)
framework/Core/lib/Horde.php

index 25af466..7b32547 100644 (file)
@@ -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)) {