Welcome! Log In Create A New Profile


ngx_unescape_uri do not unescape char '+'

January 19, 2011 10:00AM
ngx_unescape_uri dot not unescape '+' char in r->header_in->pos?

See below:

ngx_http_unescape_post_args(ngx_http_request_t *r)
u_char *dst;
u_char *src;
ngx_uint_t len;

if (r->header_in == NULL) {
return NGX_ERROR;
} else if (r->header_in->pos == r->header_in->last) {
return NGX_ERROR;

len = (r->header_in->last - r->header_in->pos);
dst = r->header_in->pos;
src = r->header_in->pos;
ngx_unescape_uri(&dst, &src, len, NGX_UNESCAPE_URI);

return NGX_OK;

Thanks a lot.

Ranier Vilela

nginx-devel mailing list
Subject Author Views Posted

ngx_unescape_uri do not unescape char '+'

Ranier 3469 January 19, 2011 10:00AM

Re: ngx_unescape_uri do not unescape char '+'

Maxim Dounin 1415 January 19, 2011 10:26AM

Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 55
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready