From: Ruediger Pluem Date: Mon, 15 Dec 2008 07:47:30 +0000 (+0000) Subject: * Do not add an empty argument if we do not have any args for the script. X-Git-Tag: 2.3.1~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25a74cc4b3edae4889b728cbbbacc30981552440;p=thirdparty%2Fapache%2Fhttpd.git * Do not add an empty argument if we do not have any args for the script. 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 --- diff --git a/CHANGES b/CHANGES index f31f2ce75fe..557281f2ae2 100644 --- 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 , 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 ] diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index c3aa26d66f1..7270652bac0 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -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 {