Closed
Bug 508647
Opened 16 years ago
Closed 13 years ago
upload a pdf-file ist reported by firefox as mime-type "x-type/subtype" instead of "application/pdf"
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 373621
People
(Reporter: dieter, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
see below
Reproducible: Always
Comment 1•14 years ago
|
||
same as bug 547234
Updated•14 years ago
|
Version: unspecified → 3.5 Branch
My project provides an file uploader for the users. When some FF10+ users try to upload a PDF, it is being sent as x-type/subtype, which is causing the file type security in my app to fail. Is this issue dead?
Comment 3•13 years ago
|
||
Would be helpful to figure out where that value comes from.
However, relying on browser-supplied content type in your web app is prone to user (and application) error, probing the type yourself is prone to security issues when the probing gets too complex.
Firefox does not seem to handle file types sensibly and nobody seems to care.
Also it tries to get file type information from the system and does not filter out what it gets in any way.
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•