summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-25 18:51:46 +0200
committerandi <andi@splitbrain.org>2005-04-25 18:51:46 +0200
commit06bd9a88e461432a194ab8eb13025b838b34f71a (patch)
treec2da66612e87566d91f87ceae644d3af63e5378c /inc/pageutils.php
parentf243a77fe35964d15fe442265666ccaa5303d953 (diff)
downloadrpg-06bd9a88e461432a194ab8eb13025b838b34f71a.tar.gz
rpg-06bd9a88e461432a194ab8eb13025b838b34f71a.tar.bz2
merge multiple _ in pagenames #271
darcs-hash:20050425165146-9977f-cc38b541646f653a4d9a4958ee82ae5fa85bb1ed.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 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);