diff options
Diffstat (limited to 'lib/cgi/core.rb')
-rw-r--r-- | lib/cgi/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index 5b01866e8e..e077c6d523 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -788,7 +788,7 @@ class CGI # cookies and other parameters are parsed automatically from the standard # CGI locations, which varies according to the REQUEST_METHOD. def initialize(options = {}, &block) # :yields: name, value - @accept_charset_error_block=block if block_given? + @accept_charset_error_block = block_given? ? block : nil @options={:accept_charset=>@@accept_charset} case options when Hash |