[TYPO3-core] RFC: #1280: Deleting directories ending in a dot in fileadmin-module impossible

Marcus Krause marcus#exp2009 at t3sec.info
Fri Jan 30 20:38:00 CET 2009


Steffen Gebert schrieb am 01/30/2009 03:20 PM Uhr:
> Hi,
> 
> this is an SVN patch request
> 
> Branches: 4.1, 4.2, trunk
> 
> Type: Bugfix
> 
> BT reference: http://bugs.typo3.org/view.php?id=1280
> 
> Problem: 
> Directories with trailing "." can be created or renamed (renamed _to_ a name with trailing "."), but not deleted.
> 
> Resolution: Change from cleanFileName() to cleanDirectoryName().

Sorry, I'm not happy with this one. Let my explain why:

The bug report complains that directories with a dot at the end are not
deletable. But this patch doesn't resolve this problem. What it does is
simply not allowing to create such folders.

Either the bug report has to be modified (to sth. like "TYPO3 wrongly
allows directories with a dot at the end") or you have to fix the bug
itself.


In addition, the description of the method you are modifying states

"Returns a string where any character not matching [.a-zA-Z0-9_-] is
substituted by '_'"

With you patch applied this description is not true any longer.


Marcus.


More information about the TYPO3-team-core mailing list