Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 850)
+++ trunk/CHANGELOG	(revision 851)
@@ -10,7 +10,9 @@
 # = Bugfix
 ! = Update/Change
 
-------------------------------------- 2.7.1 -------------------------------------
+------------------------------------- 2.7.1 -------------------------------------
+01-Jul-2008 Thomas Hornik
+# page-names with doubled (or more) points can not be handled if php runs as cgi. Thanks to forum member hgi2001.
 29-June-2008 Christian Sommer
 !	applied additional mail check to forgot login form
 28-June-2008 Christian Sommer
Index: trunk/wb/framework/functions.php
===================================================================
--- trunk/wb/framework/functions.php	(revision 850)
+++ trunk/wb/framework/functions.php	(revision 851)
@@ -391,6 +391,8 @@
 	';', /* ; */	':', /* : */	',', /* , */	'?' /* ? */
 	);
 	$string = str_replace($bad, '', $string);
+	// replace multiple dots in filename to single dot and (multiple) dots at the end of the filename to nothing
+	$string = preg_replace(array('/\.+/', '/\.+$/'), array('.', ''), $string);
 	// Now replace spaces with page spcacer
 	$string = trim($string);
 	$string = preg_replace('/(\s)+/', PAGE_SPACER, $string);
@@ -431,6 +433,8 @@
 	'?' // ?
 	);
 	$string = str_replace($bad, '', $string);
+	// replace multiple dots in filename to single dot and (multiple) dots at the end of the filename to nothing
+	$string = preg_replace(array('/\.+/', '/\.+$/'), array('.', ''), $string);
 	// Clean any page spacers at the end of string
 	$string = trim($string);
 	// Finally, return the cleaned string
