httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r1757062 - /httpd/httpd/trunk/server/gen_test_char.c
Date Sun, 21 Aug 2016 16:12:50 GMT
Author: wrowe
Date: Sun Aug 21 16:12:49 2016
New Revision: 1757062

URL: http://svn.apache.org/viewvc?rev=1757062&view=rev
Log:
Yann is correct, % is distinct from reserved and unreserved

Modified:
    httpd/httpd/trunk/server/gen_test_char.c

Modified: httpd/httpd/trunk/server/gen_test_char.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/gen_test_char.c?rev=1757062&r1=1757061&r2=1757062&view=diff
==============================================================================
--- httpd/httpd/trunk/server/gen_test_char.c (original)
+++ httpd/httpd/trunk/server/gen_test_char.c Sun Aug 21 16:12:49 2016
@@ -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;



Mime
View raw message