ports/lang/ruby18/files/patch-lib_cgi.rb
Stanislav Sedov 889c289308 - Add a bunch of fixes and patchs from the upstream. These fixes a lot of
serious bugs, some of which can pose security-related problems.
- Bump up PORTREVISION.

Requested by:	many
2007-07-10 15:04:49 +00:00

11 lines
308 B
Ruby

--- lib/cgi.rb.orig Mon Mar 12 20:55:03 2007
+++ lib/cgi.rb Wed May 23 01:58:09 2007
@@ -1163,6 +1163,7 @@
# retrieved; use #params() to get the array of values.
def [](key)
params = @params[key]
+ return '' unless params
value = params[0]
if @multipart
if value