tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59115] Part#getSubmittedFileName doesn't work corretly with double quotes in filenames.
Date Tue, 02 Aug 2016 18:10:38 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59115

Mark Thomas <markt@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REOPENED                    |RESOLVED

--- Comment #12 from Mark Thomas <markt@apache.org> ---
So, starting with RFC7578:
Section 4.2 points to RFC2183 for the definition of the content disposition
header.

RFC2183 defines:
filename-parm := "filename" "=" value
and points to RFC2045 for value

RFC2045
value := token / quoted-string
and points to RFC822

RFC822:
quoted-string = <"> *(qtext/quoted-pair) <">

qtext         =  <any CHAR excepting <">,
                  "\" & CR, and including
                  linear-white-space>

And this is what Tomcat currently implements.

There are lots up updates to these RFCs around i18n values. Browsers don't seem
to be using them. We can update Tomcat if / when browsers start supporting
them.

On the grounds Tomcat is adhering to the relevant RFCs and IE is not, I am
re-resolving this issue as fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message