w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit c56f45f87fb12ce20224d2d629c9c22ce75f7fff
parent 41b24a9b5128aef3ead68897d05e0004b28195bb
Author: ukai <ukai>
Date:   Sat, 10 May 2003 18:20:29 +0000

[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:
MChangeLog | 5+++++
Murl.c | 10++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -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 diff --git a/url.c b/url.c @@ -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 &&