Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
1 addition
and
1 deletion.
-
+1
−1
lib/sinatra/base.rb
|
@@ -78,7 +78,7 @@ def unlink? |
|
|
def params |
|
|
super |
|
|
rescue Rack::Utils::ParameterTypeError, Rack::Utils::InvalidParameterError => e |
|
|
raise BadRequest, "Invalid query parameters: #{e.message}" |
|
|
raise BadRequest, "Invalid query parameters: #{Rack::Utils.escape_html(e.message)}" |
|
|
end |
|
|
|
|
|
private |
|
|