From b93a3376d07a2022bc5b2a6a844087cec2c7b0c5 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 12 Jan 2004 13:34:26 +0000 Subject: * file.c (test_wr, test_ww): New functions implementing new methods (File::world_readable?, File::world_writable?). * file.c (S_IRUGO, S_IGUGO): New macros. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/cgi.rb b/lib/cgi.rb index 7f1f42260..f8158858f 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -923,7 +923,7 @@ class CGI %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 -- cgit