From 8ff028d0ef197a7703bc934dd8e67244be790004 Mon Sep 17 00:00:00 2001 From: Luke Jahnke Date: Mon, 1 Aug 2011 23:12:00 +1000 Subject: [PATCH] Fixed an unhandled condition where req.GET or req.POST could be nil if a URI such as a=1&a[]=1 was parsed. --- lib/rack/showexceptions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rack/showexceptions.rb b/lib/rack/showexceptions.rb index 00ddf45e4..c91ca07c5 100644 --- a/lib/rack/showexceptions.rb +++ b/lib/rack/showexceptions.rb @@ -277,7 +277,7 @@ def h(obj) # :nodoc:

Request information

GET

- <% unless req.GET.empty? %> + <% if req.GET and not req.GET.empty? %> @@ -299,7 +299,7 @@ def h(obj) # :nodoc: <% end %>

POST

- <% unless req.POST.empty? %> + <% if req.POST and not req.POST.empty? %>