projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa16b32
)
Fix Horde::url() calls with full paths, but without requesting full URLs.
author
Jan Schneider
<jan@horde.org>
Wed, 3 Nov 2010 14:41:30 +0000
(15:41 +0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 3 Nov 2010 14:42:16 +0000
(15:42 +0100)
framework/Core/lib/Horde.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde.php
b/framework/Core/lib/Horde.php
index
25af466
..
7b32547
100644
(file)
--- a/
framework/Core/lib/Horde.php
+++ b/
framework/Core/lib/Horde.php
@@
-969,6
+969,8
@@
HTML;
}
$url = $protocol . '://' . $server_name;
+ } elseif (isset($puri['scheme'])) {
+ $url = $puri['scheme'] . '://' . $puri['host'];
}
if (isset($puri['path']) && substr($puri['path'], 0, 1) == '/' && !preg_match('|^([\w+-]{1,20})://|', $webroot)) {