httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r682475 - /httpd/httpd/trunk/modules/generators/mod_cgid.c
Date Mon, 04 Aug 2008 19:37:32 GMT
Author: jim
Date: Mon Aug  4 12:37:31 2008
New Revision: 682475

URL: http://svn.apache.org/viewvc?rev=682475&view=rev
Log:
Simplyfy codepath. Don't treat "" as special, just
plug along. This matches the codepath in mod_cgi.c

Modified:
    httpd/httpd/trunk/modules/generators/mod_cgid.c

Modified: httpd/httpd/trunk/modules/generators/mod_cgid.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/generators/mod_cgid.c?rev=682475&r1=682474&r2=682475&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/generators/mod_cgid.c (original)
+++ httpd/httpd/trunk/modules/generators/mod_cgid.c Mon Aug  4 12:37:31 2008
@@ -233,13 +233,8 @@
 
     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;



Mime
View raw message