lib/grover/middleware.rb in grover-0.12.2 vs lib/grover/middleware.rb in grover-0.12.3
- old
+ new
@@ -99,10 +99,10 @@
body = body.join if body.is_a?(Array)
body = HTMLPreprocessor.process body, root_url, protocol
options = { display_url: request_url }
cookies = Rack::Utils.parse_cookies(env).map do |name, value|
- { name: name, value: value, domain: env['HTTP_HOST'] }
+ { name: name, value: Rack::Utils.escape(value), domain: env['HTTP_HOST'] }
end
options[:cookies] = cookies if cookies.any?
Grover.new(body, options)
end