aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-08 15:59:25 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-08 15:59:25 +0000
commit804cd482d6242e2a0522b5b4cb21d1c4688ead73 (patch)
tree9a7a4a76a67ff5ba216049b99109fcd4078fc98c /url.c
parent[w3m-dev 03090] Re: gopher broken (diff)
downloadw3m-804cd482d6242e2a0522b5b4cb21d1c4688ead73.tar.gz
w3m-804cd482d6242e2a0522b5b4cb21d1c4688ead73.zip
[w3m-dev 03093] Re: gopher broken
(Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (loadGopherDir): fix ->ptr q should be url_quote() * url.c (openURL): url_unquote() for gopher selector From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/url.c b/url.c
index 2c8058e..5ef1b0c 100644
--- a/url.c
+++ b/url.c
@@ -1,4 +1,4 @@
-/* $Id: url.c,v 1.47 2002/03/06 03:32:11 ukai Exp $ */
+/* $Id: url.c,v 1.48 2002/03/08 15:59:25 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -1677,7 +1677,7 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
return uf;
if (pu->file == NULL)
pu->file = "1";
- tmp = Strnew_charp(pu->file);
+ tmp = Strnew_charp(url_unquote(pu->file));
Strcat_char(tmp, '\n');
}
write(sock, tmp->ptr, tmp->length);