rack 1.0 & 1.1 fails to parse uploaded filename #547

slbug opened this Issue Apr 21, 2013 · 4 comments


None yet

4 participants


example filename - "Screenshot from 2013-04-02 22:33:53.png"

everything ok until it executes regexp from https://github.com/rack/rack/blob/rack-1.0/lib/rack/utils.rb#L374

after it filename becomes "53.png".

May be better to replace regexp with filename = filename.split(/[\/\\]/).last

Official Rack repositories member

I am not sure we're supporting these versions for anything but security related patches. Why are you still on Rack 1.0?


@rkh there is no way to upgrade even to 1.1 for me :(

Official Rack repositories member

@slbug seems like this a36ac97 is what you need.
I already told @raggi unsure if we should backport this ...

That commit is in Rack since 1.2

Official Rack repositories member


@raggi raggi closed this Jul 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment