From: Tom Clarke Date: 2003-01-08T13:19:25+09:00 Subject: Re: $cgi = CGI.new w/ mod_ruby dangerous or acceptable? This is actually what Narf does - which you are welcome to check out of CVS (http://narf-lib.sourceforge.net). Check out the docs here: http://narf-lib.sourceforge.net/doc/ I'm in the process of prepping it for a release, so the docs may not be fully debugged. -Tom On Wed, Jan 08, 2003 at 10:17:34AM +0900, Tom Sawyer wrote: > i've run into a couple of spots where it would be nice to have a universally > accessabe cgi instance, but i do not know if this is safe, especially > considering that mod_ruby can persist globals across requests. could a global > cgi object bleed over into unexpecting requests? anyone know what kind of > effect something like this would have? on the other hand, what effect does it > have to have many CGI.new's in the same script? that's another alternative. > > thanks, > tom > > -- > tom sawyer, aka transami > transami@transami.net > > > .''. > .''. . *''* :_\/_: . > :_\/_: _\(/_ .:.*_\/_* : /\ : .'.:.'. > .''.: /\ : ./)\ ':'* /\ * : '..'. -=:o:=- > :_\/_:'.:::. | ' *''* * '.\'/.' _\(/_'.':'.' > : /\ : ::::: = *_\/_* -= o =- /)\ ' * > '..' ':::' === * /\ * .'/.\'. '._____ > * | *..* : |. |' .---"| > * | _ .--'| || | _| | > * | .-'| __ | | | || | > .-----. | |' | || | | | | | || | > ___' ' /"\ | '-."". '-' '-.' '` |_. > ------------------------------------------------------------ > > >