Skip to content

Unescape option not working correctly #120

Closed
@dokshina

Description

@dokshina

Because of incrementing variable s in this line

c = src->data[s++];

this check

if (c == '%' && (ngx_uint_t) (s + 2) < src->len) {

is false if the last string character is urlencoded.

So, the last urlencoded character will be ignored.
For example, for string %7B%7D will be returned {%7D.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions