--- /usr/lib/ruby/1.8/cgi.rb	Mon Dec 22 15:16:33 2003
+++ cgi.rb	Sat Jan 10 18:55:51 2004
@@ -923,7 +923,7 @@
 
     %w[ CONTENT_LENGTH SERVER_PORT ].each do |env|
       define_method(env.sub(/^HTTP_/n, '').downcase) do
-        val = env_table[env] && Integer(val)
+        (val = env_table[env]) && Integer(val)
       end
     end
 

-- 
Dmitry Borodaenko