From: Florian Frank Date: 2003-02-09T22:20:11+09:00 Subject: Little Bug in cgi.rb --=-RHsHtDHZWOwTLH0Wb3zc Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello! If I want to inherit from class CGI the at_exit hook complains about CGI_PARAMS not being defined. The attached patch fixed this problem for me. --=-RHsHtDHZWOwTLH0Wb3zc Content-Disposition: attachment; filename=cgi.rb-patch Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; name=cgi.rb-patch; charset=ISO-8859-15 Index: lib/cgi.rb =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /src/ruby/lib/cgi.rb,v retrieving revision 1.46 diff -p -u -r1.46 cgi.rb --- lib/cgi.rb 20 Jan 2003 08:29:23 -0000 1.46 +++ lib/cgi.rb 7 Feb 2003 12:07:34 -0000 @@ -1941,7 +1941,7 @@ The hash keys are case sensitive. Ask th raise "Please, use ruby1.4.3 or later." else at_exit() do - if defined?(CGI_PARAMS) + if defined?(self.class.CGI_PARAMS) self.class.class_eval("remove_const(:CGI_PARAMS)") self.class.class_eval("remove_const(:CGI_COOKIES)") end --=-RHsHtDHZWOwTLH0Wb3zc--