diff options
author | andi <andi@splitbrain.org> | 2005-04-25 18:51:46 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-25 18:51:46 +0200 |
commit | 06bd9a88e461432a194ab8eb13025b838b34f71a (patch) | |
tree | c2da66612e87566d91f87ceae644d3af63e5378c | |
parent | f243a77fe35964d15fe442265666ccaa5303d953 (diff) | |
download | rpg-06bd9a88e461432a194ab8eb13025b838b34f71a.tar.gz rpg-06bd9a88e461432a194ab8eb13025b838b34f71a.tar.bz2 |
merge multiple _ in pagenames #271
darcs-hash:20050425165146-9977f-cc38b541646f653a4d9a4958ee82ae5fa85bb1ed.gz
-rw-r--r-- | inc/pageutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 6334afedd..d8c64f14e 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -35,7 +35,7 @@ function cleanID($id){ $id = utf8_stripspecials($id,'_','_:.-'); //clean up - $id = preg_replace('#__#','_',$id); + $id = preg_replace('#_+#','_',$id); $id = preg_replace('#:+#',':',$id); $id = trim($id,':._-'); $id = preg_replace('#:[:\._\-]+#',':',$id); |