From: Jim Jagielski Date: Mon, 4 Aug 2008 19:37:31 +0000 (+0000) Subject: Simplyfy codepath. Don't treat "" as special, just X-Git-Tag: 2.3.0~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90ea0dd95984f9b21710e5ab3f0eaa6f0439d502;p=apache Simplyfy codepath. Don't treat "" as special, just plug along. This matches the codepath in mod_cgi.c git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@682475 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgid.c b/modules/generators/mod_cgid.c index 83a729ec11..356aa7d584 100644 --- a/modules/generators/mod_cgid.c +++ b/modules/generators/mod_cgid.c @@ -233,13 +233,8 @@ static char **create_argv(apr_pool_t *p, char *path, char *user, char *group, for (x = 1; x <= numwords; x++) { w = ap_getword_nulls(p, &args, '+'); - if (strcmp(w, "")) { - ap_unescape_url(w); - av[idx++] = ap_escape_shell_cmd(p, w); - } - else { - av[idx++] = w; - } + ap_unescape_url(w); + av[idx++] = ap_escape_shell_cmd(p, w); } av[idx] = NULL; return av;