diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-08 15:59:25 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-08 15:59:25 +0000 |
commit | 804cd482d6242e2a0522b5b4cb21d1c4688ead73 (patch) | |
tree | 9a7a4a76a67ff5ba216049b99109fcd4078fc98c /url.c | |
parent | [w3m-dev 03090] Re: gopher broken (diff) | |
download | w3m-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |