[TYPO3-core] Fixed bug #338: cannot mount pathes beginning with /.foobar/
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Wed Jun 7 10:18:19 CEST 2006
Michael Stucki schrieb:
> 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.
It was a mistake. I've removed the old lines.
Masi
More information about the TYPO3-team-core
mailing list