[njs] A fix in decodeURI() and decodeURIComponent() functions.
Igor Sysoev
igor at sysoev.ru
Wed Aug 31 16:02:57 UTC 2016
details: http://hg.nginx.org/njs/rev/76f16f0ef6c5
branches:
changeset: 164:76f16f0ef6c5
user: Igor Sysoev <igor at sysoev.ru>
date: Wed Aug 31 17:51:54 2016 +0300
description:
A fix in decodeURI() and decodeURIComponent() functions.
diffstat:
njs/njs_string.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r c0aa3ecd2e83 -r 76f16f0ef6c5 njs/njs_string.c
--- a/njs/njs_string.c Wed Aug 31 15:53:13 2016 +0300
+++ b/njs/njs_string.c Wed Aug 31 17:51:54 2016 +0300
@@ -2372,6 +2372,7 @@ njs_string_decode(njs_vm_t *vm, njs_valu
byte = (d0 << 4) + d1;
if ((reserve[byte >> 5] & ((uint32_t) 1 << (byte & 0x1f))) == 0) {
+ size -= 2;
n += 2;
}
}
More information about the nginx-devel
mailing list