projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8568af
)
Avoid adding redundant slashes when building selfUrl.
author
Michael Rubinsky
<mrubinsk@simon.horde.org>
Sun, 15 Aug 2010 15:27:06 +0000
(15:27 +0000)
committer
Michael Rubinsky
<mrubinsk@simon.horde.org>
Sun, 15 Aug 2010 15:28:48 +0000
(15:28 +0000)
This fixes broken url parameters when using pretty urls. For example,
the url parameter to the login link.
framework/Core/lib/Horde.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde.php
b/framework/Core/lib/Horde.php
index
bed85ee
..
c4f782e
100644
(file)
--- a/
framework/Core/lib/Horde.php
+++ b/
framework/Core/lib/Horde.php
@@
-1285,7
+1285,7
@@
HTML;
if ($script_params) {
if ($pathInfo = Horde_Util::getPathInfo()) {
- $url .=
'/'
. $pathInfo;
+ $url .=
(strrpos($url, '/') !== (strlen($url) - 1) ? '/' : '')
. $pathInfo;
}
if (!empty($_SERVER['QUERY_STRING'])) {
$url .= '?' . $_SERVER['QUERY_STRING'];