Closed (outdated)
Project:
Drupal core
Version:
6.16
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2008 at 15:52 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent
Comments
Comment #1
Jean-Philippe Fleury commentedSubscribing, and confirming on Drupal 6.10.
Comment #2
dave reidHave you just added 'bz2' as an allowed extension?
Comment #3
Jean-Philippe Fleury commentedYes, only bz2, and my files are renamed file.tar_.bz2
Same bug if I put tar.bz2 as allowed extension.
As a workaround, I change file's extension to tbz2, e.g. file.tbz2, so my files aren't renamed.
Comment #4
nschloe commentedSame effects here, same workaround in use.
Comment #5
flaviovs commentedThis is really an issue.
File names with URL in names are also affected. I.e. try do upload "www.example.com - foobar.pdf" and see your file renamed to "www.example._com - foobar.pdf". Not nice.
I understand what this feature is trying to avoid. My question is: is such ".com" (for example) so dangerous that it have to be munged? Doesn't it suffice to check for extensions at the end of file names (that's the definition of "file extension" anyway)?
Also see http://drupal.org/node/285827 for another workaround. Unfortunately it's not a good solution for all cases -- e.g. I think that allowing uploaded files with a ".com" extension, for example, is not a good idea.
Comment #6
nschloe commented