]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Do not add an empty argument if we do not have any args for the script.
authorRuediger Pluem <rpluem@apache.org>
Mon, 15 Dec 2008 07:47:30 +0000 (07:47 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 15 Dec 2008 07:47:30 +0000 (07:47 +0000)
  Fixes a regression from r682475.

PR: 46380

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@726636 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/generators/mod_cgid.c

diff --git a/CHANGES b/CHANGES
index f31f2ce75fefe23cd883621b5fb97309045ad208..557281f2ae2736b6a48aa594e7f5983f0f15aa26 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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 @@ Changes with Apache 2.3.1
      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>]
index c3aa26d66f1b26c09c98ec4408480a229e0765a7..7270652bac022841b59fc6bdacedd98d655950b3 100644 (file)
@@ -201,7 +201,7 @@ static char **create_argv(apr_pool_t *p, char *path, char *user, char *group,
     char *w;
     int idx = 0;
 
-    if (ap_strchr_c(args, '=')) {
+    if (!(*args) || ap_strchr_c(args, '=')) {
         numwords = 0;
     }
     else {