summaryrefslogtreecommitdiffstats
path: root/server/gen_test_char.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2016-08-21 18:12:49 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2016-08-21 18:12:49 +0200
commit3a1ebf13aca557baf95d5a125bc74a8bee356b94 (patch)
tree21f6cc44a8876b366279994c0a17fef213b70e3e /server/gen_test_char.c
parentap_reclaim_child_processes() ignores its first argument (diff)
downloadapache2-3a1ebf13aca557baf95d5a125bc74a8bee356b94.tar.xz
apache2-3a1ebf13aca557baf95d5a125bc74a8bee356b94.zip
Yann is correct, % is distinct from reserved and unreserved
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757062 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/gen_test_char.c')
-rw-r--r--server/gen_test_char.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/gen_test_char.c b/server/gen_test_char.c
index 5003dc2962..ae7e18a7c6 100644
--- a/server/gen_test_char.c
+++ b/server/gen_test_char.c
@@ -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;