summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-15 21:20:42 +0100
committerandi <andi@splitbrain.org>2005-02-15 21:20:42 +0100
commit3021e063ac046276d21e77ebd7dea22bb49f12c4 (patch)
treee48aac9703a8e33a17958a2b50966654821c0c46
parent0f0ed96197238306e3b9e39caff9b8e7ed327e8e (diff)
downloadrpg-3021e063ac046276d21e77ebd7dea22bb49f12c4.tar.gz
rpg-3021e063ac046276d21e77ebd7dea22bb49f12c4.tar.bz2
fixed slash in pagenames #144
darcs-hash:20050215202042-9977f-319be1272d78e47c142f267c8ee2ec9e2c10acc2.gz
-rw-r--r--inc/common.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index e1ccb94b5..7a74ceb99 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -447,7 +447,11 @@ function cleanID($id){
//alternative namespace seperator
$id = strtr($id,';',':');
- if($conf['useslash']) $id = strtr($id,'/',':');
+ if($conf['useslash']){
+ $id = strtr($id,'/',':');
+ }else{
+ $id = strtr($id,'/','_');
+ }
if($conf['deaccent']) $id = utf8_deaccent($id,-1);