diff options
author | Piotr Sikora <piotr@cloudflare.com> | 2014-06-26 23:39:23 -0700 |
---|---|---|
committer | Piotr Sikora <piotr@cloudflare.com> | 2014-06-26 23:39:23 -0700 |
commit | 3ba8f2f73d27af3cd56506922edd91db2a56eb03 (patch) | |
tree | 8e06a209ebc148291ef7a6991946a8e1d2e492d5 /src/core/ngx_string.c | |
parent | c54899ddfd9d517b01e09fc3e57b497a8f019686 (diff) | |
download | nginx-3ba8f2f73d27af3cd56506922edd91db2a56eb03.tar.gz nginx-3ba8f2f73d27af3cd56506922edd91db2a56eb03.zip |
Core: use uppercase hexadecimal digits for percent-encoding.
RFC3986 says that, for consistency, URI producers and normalizers
should use uppercase hexadecimal digits for all percent-encodings.
This is also what modern web browsers and other tools use.
Using lowercase hexadecimal digits makes it harder to interact with
those tools in case when use of the percent-encoded URI is required,
for example when $request_uri is part of the cache key.
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r-- | src/core/ngx_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 4e279176c..9d854fa0e 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -1407,7 +1407,7 @@ ngx_escape_uri(u_char *dst, u_char *src, size_t size, ngx_uint_t type) { ngx_uint_t n; uint32_t *escape; - static u_char hex[] = "0123456789abcdef"; + static u_char hex[] = "0123456789ABCDEF"; /* " ", "#", "%", "?", %00-%1F, %7F-%FF */ |