summaryrefslogtreecommitdiff
path: root/lang/ruby18/patches/patch-ag
diff options
context:
space:
mode:
authortaca <taca>2004-11-27 14:11:15 +0000
committertaca <taca>2004-11-27 14:11:15 +0000
commit10c0625d5ca342a70b87e8f467c6f16f8e74c44d (patch)
treee891eb785c5b36b415c23efa1ed502268e476a9e /lang/ruby18/patches/patch-ag
parent634fa8258271f67cec5ba8036a926ac105ebe008 (diff)
downloadpkgsrc-10c0625d5ca342a70b87e8f467c6f16f8e74c44d.tar.gz
Initial import of ruby18 package; Ruby 1.8.1 + several security fixes.
Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible. Detail changes from Ruby 1.6.8 is huge and I know details in Ruby's site. <http://www.ruby-lang.org/ja/man/index.cgi?cmd=view;name=1.6.8%A4%AB%A4%E91.8.0%A4%D8%A4%CE%CA%D1%B9%B9%C5%C0%28%A4%DE%A4%C8%A4%E1%29> Sadly, this is written in Japanese and I don't know where is English version.
Diffstat (limited to 'lang/ruby18/patches/patch-ag')
-rw-r--r--lang/ruby18/patches/patch-ag29
1 files changed, 29 insertions, 0 deletions
diff --git a/lang/ruby18/patches/patch-ag b/lang/ruby18/patches/patch-ag
new file mode 100644
index 00000000000..fceeea554a7
--- /dev/null
+++ b/lang/ruby18/patches/patch-ag
@@ -0,0 +1,29 @@
+$NetBSD: patch-ag,v 1.1.1.1 2004/11/27 14:11:15 taca Exp $
+
+--- lib/cgi.rb.orig 2003-12-22 22:16:33.000000000 +0900
++++ 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
+
+@@ -1012,10 +1012,13 @@ class CGI
+ end
+
+ c = if bufsize < content_length
+- stdinput.read(bufsize) or ''
++ stdinput.read(bufsize)
+ else
+- stdinput.read(content_length) or ''
++ stdinput.read(content_length)
+ end
++ if c.nil?
++ raise EOFError, "bad content body"
++ end
+ buf.concat(c)
+ content_length -= c.size
+ end