4513b797ed
Patch will be sent to maintainers in a minute. Bump PKGREVISION. Also, use common distinfo file and patch dir for links and links-gui.
22 lines
951 B
Text
22 lines
951 B
Text
$NetBSD: patch-aa,v 1.1 2002/09/04 20:47:45 wiz Exp $
|
|
|
|
--- session.c.orig Sat Jun 29 21:27:04 2002
|
|
+++ session.c
|
|
@@ -185,7 +185,7 @@ unsigned char *encode_url(unsigned char
|
|
int l = 0;
|
|
for (; *url; url++) {
|
|
if (is_safe_in_shell(*url) && *url != '+') add_chr_to_str(&u, &l, *url);
|
|
- else add_chr_to_str(&u, &l, '+'), add_chr_to_str(&u, &l, hx(*url >> 4)), add_chr_to_str(&u, &l, hx(*url & 0xf));
|
|
+ else add_chr_to_str(&u, &l, '%'), add_chr_to_str(&u, &l, hx(*url >> 4)), add_chr_to_str(&u, &l, hx(*url & 0xf));
|
|
}
|
|
return u;
|
|
}
|
|
@@ -195,7 +195,7 @@ unsigned char *decode_url(unsigned char
|
|
unsigned char *u = init_str();
|
|
int l = 0;
|
|
for (; *url; url++) {
|
|
- if (*url != '+' || unhx(url[1]) == -1 || unhx(url[2]) == -1) add_chr_to_str(&u, &l, *url);
|
|
+ if (*url != '%' || unhx(url[1]) == -1 || unhx(url[2]) == -1) add_chr_to_str(&u, &l, *url);
|
|
else add_chr_to_str(&u, &l, (unhx(url[1]) << 4) + unhx(url[2])), url += 2;
|
|
}
|
|
return u;
|