]> granicus.if.org Git - apache/commitdiff
remove an unnecessary check in a nest loop of ap_create_environment()
authorRyan Pan <pqf@apache.org>
Tue, 28 Aug 2012 15:35:18 +0000 (15:35 +0000)
committerRyan Pan <pqf@apache.org>
Tue, 28 Aug 2012 15:35:18 +0000 (15:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1378178 13f79535-47bb-0310-9956-ffa450edef68

server/util_script.c

index ca246dac67953261bac6e3f41c8c38836d9213ac..5708c0860255d5103b517b4bd6c144a24b968110 100644 (file)
@@ -122,7 +122,7 @@ AP_DECLARE(char **) ap_create_environment(apr_pool_t *p, apr_table_t *t)
             *whack++ = '_';
         }
         while (*whack != '=') {
-            if (!apr_isalnum(*whack) && *whack != '_') {
+            if (!apr_isalnum(*whack)) {
                 *whack = '_';
             }
             ++whack;