projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
088b82b
)
Strip index.php from selfUrl().
author
Jan
<jan@horde.org>
Wed, 7 Jul 2010 16:10:33 +0000
(17:10 +0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 7 Jul 2010 16:29:44 +0000
(18:29 +0200)
framework/Core/lib/Horde.php
patch
|
blob
|
history
diff --git
a/framework/Core/lib/Horde.php
b/framework/Core/lib/Horde.php
index
08020b8
..
2496172
100644
(file)
--- a/
framework/Core/lib/Horde.php
+++ b/
framework/Core/lib/Horde.php
@@
-1257,6
+1257,9
@@
HTML;
$_SERVER['SCRIPT_NAME'] :
$_SERVER['PHP_SELF'];
}
+ if (substr($url, -9) == 'index.php') {
+ $url = substr($url, 0, -9);
+ }
if ($script_params) {
if ($pathInfo = Horde_Util::getPathInfo()) {