From f29adeb973dc9990485fa6e79f31a3e7c4dea8a8 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 20 Jan 2011 11:08:01 +0100 Subject: [PATCH] Only remove scheme and host if we don't want a full URL. --- wicked/lib/Wicked.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.11.0