From: Jan Schneider Date: Thu, 20 Jan 2011 10:08:01 +0000 (+0100) Subject: Only remove scheme and host if we don't want a full URL. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f29adeb973dc9990485fa6e79f31a3e7c4dea8a8;p=horde.git Only remove scheme and host if we don't want a full URL. --- diff --git a/wicked/lib/Wicked.php b/wicked/lib/Wicked.php index f67096ead..05f5b4507 100644 --- a/wicked/lib/Wicked.php +++ b/wicked/lib/Wicked.php @@ -82,7 +82,9 @@ class Wicked } $url = Horde::url($script, $full, array('append_session' => $append_session)); - $url->url = preg_replace('|^([a-zA-Z][a-zA-Z0-9+.-]{0,19})://[^/]*|', '', $url->url); + if (!$full) { + $url->url = preg_replace('|^([a-zA-Z][a-zA-Z0-9+.-]{0,19})://[^/]*|', '', $url->url); + } return $url; }