diff options
Diffstat (limited to 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 484516363..9c192e5e6 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -202,8 +202,8 @@ function noNSorNS($id) { * @author Andreas Gohr <andi@splitbrain.org> */ function sectionID($title,&$check) { - $title = str_replace(':','',cleanID($title)); - $new = ltrim($title,'0123456789._-'); + $title = str_replace(array(':','.'),'',cleanID($title)); + $new = ltrim($title,'0123456789_-'); if(empty($new)){ $title = 'section'.preg_replace('/[^0-9]+/','',$title); //keep numbers from headline }else{ |