diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-05-10 18:20:29 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-05-10 18:20:29 +0000 |
commit | 2294b42faa201b7457b3652cede3ac7ab7106924 (patch) | |
tree | dcccae9946c96e36b1e74848c09d5dbee1a972dd | |
parent | [w3m-dev 03889] Progress bar in Download List Panel (diff) | |
download | w3m-2294b42faa201b7457b3652cede3ac7ab7106924.tar.gz w3m-2294b42faa201b7457b3652cede3ac7ab7106924.zip |
[w3m-dev 03891] Re: urimethodmap and relative URL
* url.c (parseURL2): copy scheme part into pu->file when SCM_UNKNOWN
From: Fumitoshi UKAI <ukai@debian.or.jp>
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | url.c | 12 |
2 files changed, 17 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2003-05-11 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 03891] Re: urimethodmap and relative URL + * url.c (parseURL2): copy scheme part into pu->file when SCM_UNKNOWN + 2003-05-07 Hiroyuki Ito <hito@crl.go.jp> * [w3m-dev 03889] Progress bar in Download List Panel @@ -7791,4 +7796,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.832 2003/05/06 16:35:36 ukai Exp $ +$Id: ChangeLog,v 1.833 2003/05/10 18:20:29 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.78 2003/04/14 03:29:38 ukai Exp $ */ +/* $Id: url.c,v 1.79 2003/05/10 18:20:29 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include <sys/socket.h> @@ -1009,6 +1009,16 @@ parseURL2(char *url, ParsedURL *pu, ParsedURL *current) pu->host = current->host; pu->port = current->port; if (pu->file && *pu->file) { +#ifdef USE_EXTERNAL_URI_LOADER + if (pu->scheme == SCM_UNKNOWN + && strchr(pu->file, ':') == NULL + && current && (p = strchr(current->file, ':')) != NULL) { + pu->file = Sprintf("%s:%s", + allocStr(current->file, + p - current->file), + pu->file)->ptr; + } else +#endif if ( #ifdef USE_GOPHER pu->scheme != SCM_GOPHER && |