diff options
-rw-r--r-- | url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ static char *url_decode_internal(const char **query, int len, break; } - if (c == '%') { + if (c == '%' && (len < 0 || len >= 3)) { int val = hex2chr(q + 1); if (0 <= val) { strbuf_addch(out, val); |