]> granicus.if.org Git - apache/commitdiff
Simplyfy codepath. Don't treat "" as special, just
authorJim Jagielski <jim@apache.org>
Mon, 4 Aug 2008 19:37:31 +0000 (19:37 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 4 Aug 2008 19:37:31 +0000 (19:37 +0000)
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

index 83a729ec111dbaa0a63a0791c741625508a10add..356aa7d584593bb73d39d07ceaa9c1cd326c974b 100644 (file)
@@ -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;