mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[uri] Encode only bytes with highest bit set. Refs #226
It is not good, but before it was worse. Characters like ? and = were encoded.
This commit is contained in:
parent
b3402e7224
commit
dc37be3b60
@ -1434,7 +1434,7 @@ encode_uri_string_percent(struct string *string, const char *name, int namelen)
|
||||
if (namelen < 0) namelen = strlen(name);
|
||||
|
||||
for (end = name + namelen; name < end; name++) {
|
||||
if (safe_char(*name) || (*name == '/') || (*name == '%')) {
|
||||
if ((unsigned char)(*name) < 128) {
|
||||
add_char_to_string(string, *name);
|
||||
} else {
|
||||
/* Hex it. */
|
||||
|
Loading…
Reference in New Issue
Block a user