Project

General

Profile

Actions

Bug #19944

closed

Fileadmin-module wrongly allows creation of trailing dot directories on UTF8 FS

Added by Steffen Gebert over 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-01-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 doesn't allow using directory names ending with one or more dots.
This is ensured by function t3lib_basicFileFunctions::cleanFileName().

Unfortunately a later added check for UTF-8 file systems (aka $GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'] == 'utf-8' && $GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem']) enables user to create and rename those directories (but not delete, upload etc.).

The attached patch prevents creating such directories or renaming a directory to a new name with trailing dots by removing them.

Furthermore PHPDoc description was updated (Thanks to Marcus Krause)

(issue imported from #M10313)


Files

10313.diff (1.69 KB) 10313.diff Administrator Admin, 2009-01-30 21:52
10313-4_1.diff (1.55 KB) 10313-4_1.diff Administrator Admin, 2009-02-27 12:17
bug10313-trunk.patch (3.62 KB) bug10313-trunk.patch Administrator Admin, 2009-02-27 12:21

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #14859: Deleting directories ending in a dot in fileadmin-module impossibleClosed2005-07-13

Actions
Has duplicate TYPO3 Core - Bug #17121: Directories with a dot at the end of the name are created in fileadmin but inaccessibleClosedChris topher2007-03-15

Actions
Actions #1

Updated by Francois Suter over 15 years ago

Committed to trunk (revision 5070)
Committed to 4.2 (revision 5071)
Committed to 4.1 (revision 5072)

Patch committed to 4.1 is attached to this report. And so is patch for trunk with fully rewritten t3lib_basicFileFunctions::cleanFileName() method.

Actions #2

Updated by Francois Suter over 15 years ago

Blast, can't upload file after solving the issue. Reopening it.

Actions #3

Updated by Francois Suter over 15 years ago

Closing again, after having added the patch file for trunk.

Actions

Also available in: Atom PDF