diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2016-08-13 13:36:17 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-08-13 13:36:17 +0100 |
commit | 91f4f89d4c864c6ce0170d60a13a29aed56fea5d (patch) | |
tree | 2118f4f5b478ec66439c41fe14ccdfae4ad236e4 /utils/url.c | |
parent | 6a3f7a386ed7912d19971dec9235ad98692c22c1 (diff) | |
parent | fe00eac8cb0740b74ec2f586d98e741c84299d90 (diff) | |
download | netsurf-91f4f89d4c864c6ce0170d60a13a29aed56fea5d.tar.gz netsurf-91f4f89d4c864c6ce0170d60a13a29aed56fea5d.tar.bz2 |
Merge branch 'tlsa/date'
Diffstat (limited to 'utils/url.c')
-rw-r--r-- | utils/url.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/url.c b/utils/url.c index 7a7b7a196..ee8485040 100644 --- a/utils/url.c +++ b/utils/url.c @@ -35,7 +35,9 @@ #include <assert.h> #include <string.h> #include <stdlib.h> +#include <stdbool.h> +#include "utils/ascii.h" #include "utils/config.h" #include "utils/log.h" #include "utils/url.h" @@ -92,7 +94,7 @@ nserror url_unescape(const char *str, size_t length, char c1 = *(str + 1); char c2 = *(str + 2); - if (c == '%' && isxdigit(c1) && isxdigit(c2)) { + if (c == '%' && ascii_is_hex(c1) && ascii_is_hex(c2)) { c = xdigit_to_hex(c1) << 4 | xdigit_to_hex(c2); str += 2; } |