Fix passing append_session, and strip scheme and hostname from URLs.
authorJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 16:45:37 +0000 (17:45 +0100)
committerJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 16:46:06 +0000 (17:46 +0100)
wicked/lib/Wicked.php

index afea0fe..ac5e129 100644 (file)
@@ -81,7 +81,10 @@ class Wicked
             $script = Horde_Util::addParameter('display.php', 'page', $page);
         }
 
-        return Horde::url($script, $full, $append_session);
+        $url = Horde::url($script, $full, array('append_session' => $append_session));
+        $url->url = preg_replace('|^[\w+-]{1,20}://[^/]*|', '', $url->url);
+
+        return $url;
     }
 
     /**