[TYPO3-core] Fixed bug #338: cannot mount pathes beginning with /.foobar/
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Mon May 15 22:27:24 CEST 2006
Hi!
class.t3lib_userauthgroup.php::addFilemount had a too rigorous path
normalization.
I took the quote from Kasper as an ok to change it. This is what I've
done (to HEAD and TYPO3_4-0):
OLD:
// remove all slashes and dots before and after the path
$path=ereg_replace('^[\/\. ]*','',$path);
$path=trim(ereg_replace('[\/\. ]*$','',$path));
NEW:
// remove leading '/' and './', and trailing '/' and '/.'
$path=trim($path);
$path=preg_replace('#^\.?/|/\.?$#','',$path);
Masi
More information about the TYPO3-team-core
mailing list