projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
751e1d7
)
Only remove scheme and host if we don't want a full URL.
author
Jan Schneider
<jan@horde.org>
Thu, 20 Jan 2011 10:08:01 +0000
(11:08 +0100)
committer
Jan Schneider
<jan@horde.org>
Thu, 20 Jan 2011 10:08:01 +0000
(11:08 +0100)
wicked/lib/Wicked.php
patch
|
blob
|
history
diff --git
a/wicked/lib/Wicked.php
b/wicked/lib/Wicked.php
index
f67096e
..
05f5b45
100644
(file)
--- 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;
}