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 /url.c | |
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>
Diffstat (limited to '')
-rw-r--r-- | url.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 && |