[TYPO3-core] Fixed bug #338: cannot mount pathes beginning with /.foobar/

Michael Stucki michael at typo3.org
Tue Jun 6 12:06:53 CEST 2006


Hi Martin,

> 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);

I notice that you replaced the code in HEAD but _added_ it in TYPO3_4-0! Was
this intention or just a mistake? Please check.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list