httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r726636 - in /httpd/httpd/trunk: CHANGES modules/generators/mod_cgid.c
Date Mon, 15 Dec 2008 07:47:30 GMT
Author: rpluem
Date: Sun Dec 14 23:47:30 2008
New Revision: 726636

URL: http://svn.apache.org/viewvc?rev=726636&view=rev
Log:
* Do not add an empty argument if we do not have any args for the script.
  Fixes a regression from r682475.

PR: 46380

Modified:
    httpd/httpd/trunk/CHANGES
    httpd/httpd/trunk/modules/generators/mod_cgid.c

Modified: httpd/httpd/trunk/CHANGES
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/CHANGES?rev=726636&r1=726635&r2=726636&view=diff
==============================================================================
--- httpd/httpd/trunk/CHANGES [utf-8] (original)
+++ httpd/httpd/trunk/CHANGES [utf-8] Sun Dec 14 23:47:30 2008
@@ -2,9 +2,12 @@
 Changes with Apache 2.3.1
 [ When backported to 2.2.x, remove entry from this file ]
 
+  *) mod_cgid: Do not add an empty argument when calling the CGI script.
+     PR 46380 [Ruediger Pluem]
+
   *) scoreboard: Remove unused sb_type from process_score.
      [Torsten Foertsch <torsten.foertsch@gmx.net>, Chris Darroch]
-  
+
   *) mod_ssl: Add SSLRenegBufferSize directive to allow changing the
      size of the buffer used for the request-body where necessary
      during a per-dir renegotiation.  PR 39243.  [Joe Orton]
@@ -21,7 +24,7 @@
      mod_socache* and mod_session*. [Graham Leggett]
 
 Changes with Apache 2.3.0
- 
+
   *) mod_cache: When an explicit Expires or Cache-Control header is set, cache 
      normally non-cacheable response statuses. PR 46346. 
      [Alex Polvi <alex polvi.net>]

Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_cgid.c?rev=726636&r1=726635&r2=726636&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_cgid.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_cgid.c Sun Dec 14 23:47:30 2008
@@ -201,7 +201,7 @@
     char *w;
     int idx = 0;
 
-    if (ap_strchr_c(args, '=')) {
+    if (!(*args) || ap_strchr_c(args, '=')) {
         numwords = 0;
     }
     else {



Mime
View raw message