Skip to content

Commit

Permalink
Fixes next token after a filename may include a dash or other character
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
rubys authored and josh committed Jan 21, 2010
1 parent 18eb0d3 commit a180673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/utils.rb
Expand Up @@ -483,7 +483,7 @@ def self.parse_multipart(env)
dispparm = /;\s*(#{token})=("(?:\\"|[^"])*"|#{token})*/

rfc2183 = /^#{condisp}(#{dispparm})+$/i
broken_quoted = /^#{condisp}.*;\sfilename="(.*?)"(?:\s*$|\s*;\s*\w+=)/i
broken_quoted = /^#{condisp}.*;\sfilename="(.*?)"(?:\s*$|\s*;\s*#{token}=)/i
broken_unquoted = /^#{condisp}.*;\sfilename=(#{token})/i

if head =~ rfc2183
Expand Down

0 comments on commit a180673

Please sign in to comment.