Author: joes
Date: Thu Mar 10 13:12:46 2005
New Revision: 156992
URL: http://svn.apache.org/viewcvs?view=rev&rev=156992
Log:
Use uppercase for %-encodings, following recommendation
in RFC3986 Section 2.1.
Modified:
httpd/apreq/branches/multi-env-unstable/library/t/params.c
httpd/apreq/branches/multi-env-unstable/library/util.c
Modified: httpd/apreq/branches/multi-env-unstable/library/t/params.c
URL:
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/library/t/params.c?view=diff&r1=156991&r2=156992
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/library/t/params.c (original)
+++ httpd/apreq/branches/multi-env-unstable/library/t/params.c Thu Mar 10
13:12:46 2005
@@ -89,7 +89,7 @@
apreq_unescape(s2);
AT_str_eq(s2,"dandy >dons");
s3 = apreq_escape(p, s2, 11);
- AT_str_eq(s3,"dandy+%3edons");
+ AT_str_eq(s3,"dandy+%3Edons");
apreq_unescape(s3);
AT_str_eq(s3,"dandy >dons");
}
@@ -150,7 +150,7 @@
AT_str_eq(param->v.data, val);
encode = apreq_param_encode(p, param);
- AT_str_eq(encode, "foo=bar+%3e+alpha");
+ AT_str_eq(encode, "foo=bar+%3E+alpha");
s = apreq_param_decode(&decode, p, encode, nlen, vlen+2);
AT_int_eq(s, APR_SUCCESS);
Modified: httpd/apreq/branches/multi-env-unstable/library/util.c
URL:
http://svn.apache.org/viewcvs/httpd/apreq/branches/multi-env-unstable/library/util.c?view=diff&r1=156991&r2=156992
==============================================================================
--- httpd/apreq/branches/multi-env-unstable/library/util.c (original)
+++ httpd/apreq/branches/multi-env-unstable/library/util.c Thu Mar 10 13:12:46
2005
@@ -109,7 +109,7 @@
return hay ? hay - begin : -1;
}
-static const char c2x_table[] = "0123456789abcdef"; /* XXX uppercase a-f ? */
+static const char c2x_table[] = "0123456789ABCDEF";
static APR_INLINE char x2c(const char *what)
{
register char digit;