projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bc481a
)
MFB: Simplify
author
Jan Schneider
<jan@horde.org>
Sun, 14 Feb 2010 18:37:03 +0000
(19:37 +0100)
committer
Jan Schneider
<jan@horde.org>
Sun, 14 Feb 2010 22:24:06 +0000
(23:24 +0100)
wicked/lib/Page.php
patch
|
blob
|
history
diff --git
a/wicked/lib/Page.php
b/wicked/lib/Page.php
index
d1850c2
..
0303171
100644
(file)
--- a/
wicked/lib/Page.php
+++ b/
wicked/lib/Page.php
@@
-186,7
+186,7
@@
class Page {
*/
function getCurrentPage()
{
- return Page::getPage(
preg_replace('|/$|', '', Horde_Util::getFormData('page')
),
+ return Page::getPage(
rtrim(Horde_Util::getFormData('page'), '/'
),
Horde_Util::getFormData('version'),
Horde_Util::getFormData('referrer'));
}