From 4976d0cfe9fc47aa8b0da10d41abe8cb65873355 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 10 Jan 2003 16:29:23 +0000 Subject: [w3m-dev 03626] Re: relative URL * url.c (parseURL2): copy if scheme is local or local-cgi From: Hironori SAKAMOTO --- ChangeLog | 7 ++++++- url.c | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 18221b7..1b1cab2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-11 Hironori SAKAMOTO + + * [w3m-dev 03626] Re: relative URL + * url.c (parseURL2): copy if scheme is local or local-cgi + 2003-01-11 Hironori SAKAMOTO * [w3m-dev 03625] keymap key SEARCH string @@ -6275,4 +6280,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.664 2003/01/10 16:23:52 ukai Exp $ +$Id: ChangeLog,v 1.665 2003/01/10 16:29:23 ukai Exp $ diff --git a/url.c b/url.c index 2c4b656..af335fc 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.66 2003/01/08 17:24:13 ukai Exp $ */ +/* $Id: url.c,v 1.67 2003/01/10 16:29:28 ukai Exp $ */ #include "fm.h" #include #include @@ -1026,7 +1026,9 @@ parseURL2(char *url, ParsedURL *pu, ParsedURL *current) pu->file = expandName(pu->file); if (current && (pu->scheme == current->scheme || - (pu->scheme == SCM_FTP && current->scheme == SCM_FTPDIR)) + (pu->scheme == SCM_FTP && current->scheme == SCM_FTPDIR) || + (pu->scheme == SCM_LOCAL && + current->scheme == SCM_LOCAL_CGI)) && pu->host == NULL) { /* Copy omitted element from the current URL */ pu->user = current->user; -- cgit v1.2.3