Github user jpeach commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/541#discussion_r59663218 --- Diff: proxy/hdrs/URL.cc --- @@ -1846,4 +1823,42 @@ REGRESSION_TEST(VALIDATE_HDR_FIELD)(RegressionTest *t, int /* level ATS_UNUSED * } } + +const static struct { + const char *const uri; + bool valid; +} http_strict_uri_parsing_test_case[] = {{"/home", true}, + {"/path/data?key=value#id", true}, + {"/ABCDEFGHIJKLMNOPQRSTUVWXYZ", true}, + {"/abcdefghijklmnopqrstuvwxyz", true}, + {"/0123456789", true}, + {":/?#[]@", true}, + {"!$&'()*+,;=", true}, + {"-._~", true}, + {"%", true}, + {"\n", false}, + {"\"", false}, + {"<", false}, + {">", false}, + {"\\", false}, + {"^", false}, + {"`", false}, + {"{", false}, + {"|", false}, + {"}", false}, + {"é", false}}; + +REGRESSION_TEST(STRICT_URI_PARSING)(RegressionTest *t, int /* level ATS_UNUSED */, int *pstatus) --- End diff -- We don't use all caps ``STRICT_URI_PARSING``. How about ``ParseRules_strict_URI`` or something?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---