Project

General

Profile

« Previous | Next » 

Revision 851

Added by thorn about 16 years ago

page-names with doubled (or more) points can not be handled if php runs as cgi. Thanks to forum member hgi2001.

View differences:

trunk/CHANGELOG
10 10
# = Bugfix
11 11
! = Update/Change
12 12

  
13
------------------------------------- 2.7.1 -------------------------------------
13
------------------------------------- 2.7.1 -------------------------------------
14
01-Jul-2008 Thomas Hornik
15
# page-names with doubled (or more) points can not be handled if php runs as cgi. Thanks to forum member hgi2001.
14 16
29-June-2008 Christian Sommer
15 17
!	applied additional mail check to forgot login form
16 18
28-June-2008 Christian Sommer
trunk/wb/framework/functions.php
391 391
	';', /* ; */	':', /* : */	',', /* , */	'?' /* ? */
392 392
	);
393 393
	$string = str_replace($bad, '', $string);
394
	// replace multiple dots in filename to single dot and (multiple) dots at the end of the filename to nothing
395
	$string = preg_replace(array('/\.+/', '/\.+$/'), array('.', ''), $string);
394 396
	// Now replace spaces with page spcacer
395 397
	$string = trim($string);
396 398
	$string = preg_replace('/(\s)+/', PAGE_SPACER, $string);
......
431 433
	'?' // ?
432 434
	);
433 435
	$string = str_replace($bad, '', $string);
436
	// replace multiple dots in filename to single dot and (multiple) dots at the end of the filename to nothing
437
	$string = preg_replace(array('/\.+/', '/\.+$/'), array('.', ''), $string);
434 438
	// Clean any page spacers at the end of string
435 439
	$string = trim($string);
436 440
	// Finally, return the cleaned string

Also available in: Unified diff