Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

now we also escape "=" in set_escape_uri.

  • Loading branch information...
commit 577ea941058fcec6d24e0023b3ed2b6cfcedc6e1 1 parent f8b54c1
@agentzh agentzh authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  src/ngx_http_set_escape_uri.c
  2. +2 −2 test/t/escape-uri.t
View
2  src/ngx_http_set_escape_uri.c
@@ -67,7 +67,7 @@ ngx_escape_uri_patched(u_char *dst, u_char *src, size_t size, ngx_uint_t type)
0xffffffff, /* 1111 1111 1111 1111 1111 1111 1111 1111 */
/* ?>=< ;:98 7654 3210 /.-, +*)( '&%$ #"! */
- 0x80008829, /* 1000 0000 0000 0000 1000 1000 0010 1001 */
+ 0xa0008829, /* 1000 0000 0000 0000 1000 1000 0010 1001 */
/* _^]\ [ZYX WVUT SRQP ONML KJIH GFED CBA@ */
0x00000000, /* 0000 0000 0000 0000 0000 0000 0000 0000 */
View
4 test/t/escape-uri.t
@@ -116,12 +116,12 @@ welcometotheworldofnginx
=== TEST 8: fixed ngx_escape_uri issues: + and / should also be escaped
--- config
location /foo {
- set $foo '+/';
+ set $foo '+/=';
set_escape_uri $foo;
echo $foo;
}
--- request
GET /foo
--- response_body
-%2b%2f
+%2b%2f%3d
Please sign in to comment.
Something went wrong with that request. Please try again.