projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17c3c20
)
Fix passing append_session, and strip scheme and hostname from URLs.
author
Jan Schneider
<jan@horde.org>
Wed, 3 Nov 2010 16:45:37 +0000
(17:45 +0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 3 Nov 2010 16:46:06 +0000
(17:46 +0100)
wicked/lib/Wicked.php
patch
|
blob
|
history
diff --git
a/wicked/lib/Wicked.php
b/wicked/lib/Wicked.php
index
afea0fe
..
ac5e129
100644
(file)
--- a/
wicked/lib/Wicked.php
+++ b/
wicked/lib/Wicked.php
@@
-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;
}
/**