diff options
| author | 2025-02-04 16:24:21 +0100 | |
|---|---|---|
| committer | 2025-02-04 16:24:21 +0100 | |
| commit | 636d026e133d874daf39a84a7702253454644926 (patch) | |
| tree | ff925ddaa465fc64508deb9600cbf8e92c65d58f /xs_url.h | |
| parent | Merge branch 'master' of comam.es:git/snac2 (diff) | |
| download | penes-snac2-636d026e133d874daf39a84a7702253454644926.tar.gz penes-snac2-636d026e133d874daf39a84a7702253454644926.tar.xz penes-snac2-636d026e133d874daf39a84a7702253454644926.zip | |
More xs_url_dec() fixes.
Diffstat (limited to 'xs_url.h')
| -rw-r--r-- | xs_url.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -17,6 +17,9 @@ xs_str *xs_url_dec(const char *str) | |||
| 17 | xs_str *s = xs_str_new(NULL); | 17 | xs_str *s = xs_str_new(NULL); |
| 18 | 18 | ||
| 19 | while (*str) { | 19 | while (*str) { |
| 20 | if (!xs_is_string(str)) | ||
| 21 | break; | ||
| 22 | |||
| 20 | if (*str == '%') { | 23 | if (*str == '%') { |
| 21 | unsigned int i; | 24 | unsigned int i; |
| 22 | 25 | ||