Project

General

Profile

Actions

Bug #16098

closed

Files with two dot can not deleteed

Added by U Stephan over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
-
Start date:
2006-04-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Files with 2 dots in the filename (tes..t.txt) can not be deleted.
If there are such files the klickmenu in the filelist still won't work. Deleting the file is only possible direcly on the server.
Tried in Typo3 4.0 and 3.8.1

(issue imported from #M3364)


Files

t3lib_div-dots.diff (722 Bytes) t3lib_div-dots.diff Administrator Admin, 2006-04-28 21:25
Actions #1

Updated by Martin Kutschker over 18 years ago

Try this patch.

Actions #2

Updated by Martin Kutschker over 18 years ago

Better use this: preg_match('|(?:^\.\.|/\.\./|',$path). Checks for and "../foo/bar" or "fo/../bar" which must be forbidden.

Actions #3

Updated by U Stephan over 18 years ago

Thanks Martin, the Patch works.
But I don't know how to use the "better" solution?

Actions #4

Updated by Martin Kutschker over 18 years ago

Fixed in CVS (4.0.1 and HEAD).

Actions

Also available in: Atom PDF