1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

some comments

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@545 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
evanweaver 2007-08-13 21:02:13 +00:00
parent 2549b456f2
commit f79aeffaf6
4 changed files with 11 additions and 7 deletions

View file

@ -1,7 +1,7 @@
test/cgi_multipart_eof_fix_test.rb
README
Manifest
LICENSE
lib/rake_task_redefine_task.rb
lib/cgi_multipart_eof_fix.rb
RUBY-LICENSE
README
CHANGELOG
AFL3-LICENSE

View file

@ -3,7 +3,7 @@ require 'rubygems'
require 'lib/rake_task_redefine_task.rb'
begin
gem 'echoe', '=>2.3'
gem 'echoe', '>=2.3'
require 'echoe'
echoe = Echoe.new("cgi_multipart_eof_fix") do |p|

View file

@ -1,7 +1,11 @@
version = RUBY_VERSION.split(".").map {|num| num.to_i }
# unfortunately:
# >> "1.8.6" < "1.8.10"
# => false
if version[0] < 2 and version[1] < 9 and version[2] < 6
version = RUBY_VERSION.split(".").map {|i| i.to_i }
if version [0] < 2 and version [1] < 9 and version [2] < 6
STDERR.puts "** Ruby version is not up-to-date; loading cgi_multipart_eof_fix"

View file

@ -12,7 +12,7 @@ ENV['CONTENT_TYPE'] = "multipart/form-data; boundary=\"#{BOUNDARY}\""
ENV['CONTENT_LENGTH'] = PAYLOAD.length.to_s
Object.send(:remove_const, :STDERR)
STDERR = StringIO.new
STDERR = StringIO.new # hide the multipart load warnings
version = RUBY_VERSION.split(".").map {|i| i.to_i }
IS_VULNERABLE = (version [0] < 2 and version [1] < 9 and version [2] < 6)