diff options
author | 2009-12-24 10:44:53 -0500 | |
---|---|---|
committer | 2009-12-24 10:44:53 -0500 | |
commit | c440dfc99e1292cf71c96f32e3030a39101eac29 (patch) | |
tree | cf76b77aad3472dffdc66f3b00386d2fbe0b84b9 /src/c/urweb.c | |
parent | 07d56b08d87a7453fcd5b192532fcceac86c27cc (diff) |
Proper JavaScript-side URI escaping/de-escaping; fix C-side URL encoding of big characters
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r-- | src/c/urweb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index 472f6eb4..1f8271d5 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -1590,7 +1590,7 @@ char *uw_Basis_urlifyString(uw_context ctx, uw_Basis_string s) { *p++ = '_'; for (; *s; s++) { - char c = *s; + unsigned char c = *s; if (c == ' ') *p++ = '+'; @@ -1667,7 +1667,7 @@ uw_unit uw_Basis_urlifyString_w(uw_context ctx, uw_Basis_string s) { uw_writec_unsafe(ctx, '_'); for (; *s; s++) { - char c = *s; + unsigned char c = *s; if (c == ' ') uw_writec_unsafe(ctx, '+'); @@ -1737,7 +1737,7 @@ static uw_Basis_string uw_unurlifyString_to(int fromClient, uw_context ctx, char } for (s1 = r; *s2; ++s1, ++s2) { - char c = *s2; + unsigned char c = *s2; switch (c) { case '+': |