Skip to content

Commit 2a11d56

Browse files
committed
ngx_escape_url not documented well
ngx_escape_url not documented well
1 parent 1d9f8eb commit 2a11d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_auth_jwt_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ static ngx_int_t ngx_http_auth_jwt_handler(ngx_http_request_t *r)
223223
}
224224

225225
// escape the URI
226-
escaped_len = ngx_escape_uri(NULL, uri.data, uri.len, NGX_ESCAPE_URI);
226+
escaped_len = 2 * ngx_escape_uri(NULL, uri.data, uri.len, NGX_ESCAPE_URI) + uri.len;
227227
uri_escaped.data = ngx_palloc(r->pool, escaped_len);
228228
uri_escaped.len = escaped_len;
229229
ngx_escape_uri(uri_escaped.data, uri.data, uri.len, NGX_ESCAPE_URI);

0 commit comments

Comments
 (0)