Welcome! Log In Create A New Profile

Advanced

ngx_unescape_uri do not unescape char '+'

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

See below:

<code>
ngx_int_t
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;
}
</code>

Thanks a lot.

Ranier Vilela

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_unescape_uri do not unescape char '+'

Ranier 3449 January 19, 2011 10:00AM

Re: ngx_unescape_uri do not unescape char '+'

Maxim Dounin 1403 January 19, 2011 10:26AM



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

Online Users

Guests: 191
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