diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-12-29 14:28:27 +0100 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-12-29 14:28:27 +0100 |
commit | 3417378f49671f667f9d414d417dc0e9e3b53bdd (patch) | |
tree | 60fc4a50fcc56d01c6a853b21313b09592f2c463 /lib | |
parent | Update to 4.0.2 (diff) | |
download | bugzilla-3417378f49671f667f9d414d417dc0e9e3b53bdd.tar.gz bugzilla-3417378f49671f667f9d414d417dc0e9e3b53bdd.tar.bz2 bugzilla-3417378f49671f667f9d414d417dc0e9e3b53bdd.zip |
Bump to 4.0.3
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CGI.pm | 31 | ||||
-rw-r--r-- | lib/CGI/Fast.pm | 30 |
2 files changed, 30 insertions, 31 deletions
diff --git a/lib/CGI.pm b/lib/CGI.pm index 1d2ed8bc1..65fdb59c6 100644 --- a/lib/CGI.pm +++ b/lib/CGI.pm @@ -20,7 +20,7 @@ use Carp 'croak'; # The revision is no longer being updated since moving to git. $CGI::revision = '$Id: CGI.pm,v 1.266 2009/07/30 16:32:34 lstein Exp $'; -$CGI::VERSION='3.55'; +$CGI::VERSION='3.58'; # HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES. # UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING. @@ -386,7 +386,7 @@ sub new { # user is still holding any reference to them as well. sub DESTROY { my $self = shift; - if ($OS eq 'WINDOWS') { + if ($OS eq 'WINDOWS' || $OS eq 'VMS') { for my $href (values %{$self->{'.tmpfiles'}}) { $href->{hndl}->DESTROY if defined $href->{hndl}; $href->{name}->DESTROY if defined $href->{name}; @@ -5565,13 +5565,13 @@ place to put HTML extensions, such as colors and wallpaper patterns. =head2 ENDING THE HTML DOCUMENT: - print end_html + print $q->end_html; This ends an HTML document by printing the </body></html> tags. =head2 CREATING A SELF-REFERENCING URL THAT PRESERVES STATE INFORMATION: - $myself = self_url; + $myself = $q->self_url; print q(<a href="$myself">I'm talking to myself.</a>); self_url() will return a URL, that, when selected, will reinvoke @@ -5580,7 +5580,7 @@ useful when you want to jump around within the document using internal anchors but you don't want to disrupt the current contents of the form(s). Something like this will do the trick. - $myself = self_url; + $myself = $q->self_url; print "<a href=\"$myself#table1\">See table 1</a>"; print "<a href=\"$myself#table2\">See table 2</a>"; print "<a href=\"$myself#yourself\">See for yourself</a>"; @@ -5590,7 +5590,10 @@ method instead. You can also retrieve the unprocessed query string with query_string(): - $the_string = query_string; + $the_string = $q->query_string(); + +The behavior of calling query_string is currently undefined when the HTTP method is +something other than GET. =head2 OBTAINING THE SCRIPT'S URL @@ -7988,15 +7991,15 @@ available for your use: =head1 AUTHOR INFORMATION -The CGI.pm distribution is copyright 1995-2007, Lincoln D. Stein. It is -distributed under GPL and the Artistic License 2.0. +The CGI.pm distribution is copyright 1995-2007, Lincoln D. Stein. It is +distributed under GPL and the Artistic License 2.0. It is currently +maintained by Mark Stosberg with help from many contributors. -Address bug reports and comments to: lstein@cshl.org. When sending -bug reports, please provide the version of CGI.pm, the version of -Perl, the name and version of your Web server, and the name and -version of the operating system you are using. If the problem is even -remotely browser dependent, please provide information about the -affected browsers as well. +Address bug reports and comments to: https://rt.cpan.org/Public/Dist/Display.html?Queue=CGI.pm +When sending bug reports, please provide the version of CGI.pm, the version of +Perl, the name and version of your Web server, and the name and version of the +operating system you are using. If the problem is even remotely browser +dependent, please provide information about the affected browsers as well. =head1 CREDITS diff --git a/lib/CGI/Fast.pm b/lib/CGI/Fast.pm index e31dac3f5..288d854a9 100644 --- a/lib/CGI/Fast.pm +++ b/lib/CGI/Fast.pm @@ -19,7 +19,7 @@ local $^W = 1; # wish, but if you redistribute a modified version, please attach a note # listing the modifications you have made. -$CGI::Fast::VERSION='1.08'; +$CGI::Fast::VERSION='1.09'; use CGI; use FCGI; @@ -43,27 +43,23 @@ sub save_request { # in this package variable. use vars qw($Ext_Request); BEGIN { - # If ENV{FCGI_SOCKET_PATH} is given, explicitly open the socket, - # and keep the request handle around from which to call Accept(). - if ($ENV{FCGI_SOCKET_PATH}) { - my $path = $ENV{FCGI_SOCKET_PATH}; - my $backlog = $ENV{FCGI_LISTEN_QUEUE} || 100; - my $socket = FCGI::OpenSocket( $path, $backlog ); - $Ext_Request = FCGI::Request( \*STDIN, \*STDOUT, \*STDERR, - \%ENV, $socket, 1 ); - } + # If ENV{FCGI_SOCKET_PATH} is given, explicitly open the socket. + if ($ENV{FCGI_SOCKET_PATH}) { + my $path = $ENV{FCGI_SOCKET_PATH}; + my $backlog = $ENV{FCGI_LISTEN_QUEUE} || 100; + my $socket = FCGI::OpenSocket( $path, $backlog ); + $Ext_Request = FCGI::Request( \*STDIN, \*STDOUT, \*STDERR, + \%ENV, $socket, 1 ); + } + else { + $Ext_Request = FCGI::Request(); + } } -# New is slightly different in that it calls FCGI's -# accept() method. sub new { my ($self, $initializer, @param) = @_; unless (defined $initializer) { - if ($Ext_Request) { - return undef unless $Ext_Request->Accept() >= 0; - } else { - return undef unless FCGI::accept() >= 0; - } + return undef unless $Ext_Request->Accept() >= 0; } CGI->_reset_globals; $self->_setup_symbols(@CGI::SAVED_SYMBOLS) if @CGI::SAVED_SYMBOLS; |