summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorBen Coburn <btcoburn@silicodon.net>2007-05-26 11:45:01 +0200
committerBen Coburn <btcoburn@silicodon.net>2007-05-26 11:45:01 +0200
commit7a42ac9e2468bf8a316de0792b1ebc3b87d8fdac (patch)
tree98f5adac70c2c0736f3186b626b334f147e01dd9 /inc/pageutils.php
parente7f137b23de337be4f6814f6ddfb8e426b270f73 (diff)
downloadrpg-7a42ac9e2468bf8a316de0792b1ebc3b87d8fdac.tar.gz
rpg-7a42ac9e2468bf8a316de0792b1ebc3b87d8fdac.tar.bz2
Fix infinite page redirects in getID
Fix infinite page redirects in getID Loading "start:" was causing a loop of page redirects. Page IDs like "start:" now resolve correctly to an ID like "start". darcs-hash:20070526094501-05dcb-eac8e908ecda8820aa0ef66760786b2094395fe2.gz
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r--inc/pageutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 6f21a6e2e..778e7d664 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -63,7 +63,7 @@ function getID($param='id',$clean=true){
$id = $id.noNS(cleanID($id));
}elseif(@file_exists(wikiFN($id))){
// page like namespace exists
- $id = $id;
+ $id = substr($id,0,-1);
}else{
// fall back to default
$id = $id.$conf['start'];