Commit 74651b26 authored by Jim Jagielski's avatar Jim Jagielski
Browse files

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
parent 4d1d908e
Loading
Loading
Loading
Loading
+0 −5
Changes for modules/generators/mod_cgid.c: 0 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -233,14 +233,9 @@ 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;
        }
    }
    av[idx] = NULL;
    return av;
}