aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-12 13:34:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-12 13:34:26 +0000
commita739d26d0a494a141059c0e8045bff66bc66d39b (patch)
treef117a1536af4f02b3a575a5eb5132a4c14d0d2fa /lib/cgi.rb
parenta1d3a8e8619b82fbff71ae7dd264926983be829a (diff)
downloadruby-a739d26d0a494a141059c0e8045bff66bc66d39b.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 7f1f42260e..f8158858f3 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