From 90ea0dd95984f9b21710e5ab3f0eaa6f0439d502 Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Mon, 4 Aug 2008 19:37:31 +0000 Subject: [PATCH] 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 --- modules/generators/mod_cgid.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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; -- 2.50.1