sinatra/sinatra — Issue #463: Plus (+) symbols are no longer being decoded into spaces when part of a URL capture
Author: boucher
Created: 2012-02-08 20:26:51+00:00
State: open

A route defined like so:

get '/foo/:bar' do
body "Hey #{params[:bar]}\n"
end

Used to behave like this in 1.2.6:

boucher ~ $ curl http://localhost:4567/foo/b+ar
Hey b ar

But in 1.3.2 it behaves like this:

boucher ~ $ curl http://localhost:4567/foo/b+ar
Hey b+ar

This does not, however, affect params sent in the post body. Plus symbols are still converted into spaces there.