]> granicus.if.org Git - apache/commitdiff
Yann is correct, % is distinct from reserved and unreserved
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 21 Aug 2016 16:12:49 +0000 (16:12 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sun, 21 Aug 2016 16:12:49 +0000 (16:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757062 13f79535-47bb-0310-9956-ffa450edef68

server/gen_test_char.c

index 5003dc29628bbbcc95bb9faedd1f38e2aebb3eb4..ae7e18a7c646585f424df4f274979f6a36feed1b 100644 (file)
@@ -143,7 +143,8 @@ int main(int argc, char *argv[])
          * and unreserved (2.3) that are possible somewhere within a URI.
          * Spec requires all others to be %XX encoded, including obs-text.
          */
-        if (c && (strchr(":/?#[]@"                        /* gen-delims */ 
+        if (c && (strchr("%"                              /* pct-encode */
+                         ":/?#[]@"                        /* gen-delims */ 
                          "!$&'()*+,;="                    /* sub-delims */
                          "-._~", c) || apr_isalnum(c))) { /* unreserved */
             flags |= T_URI_RFC3986;