From 3021e063ac046276d21e77ebd7dea22bb49f12c4 Mon Sep 17 00:00:00 2001 From: andi Date: Tue, 15 Feb 2005 21:20:42 +0100 Subject: fixed slash in pagenames #144 darcs-hash:20050215202042-9977f-319be1272d78e47c142f267c8ee2ec9e2c10acc2.gz --- inc/common.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inc') 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); -- cgit v1.2.3