aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--url.c12
2 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index da317c0..db76082 100644
--- 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
@@ -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 $
diff --git a/url.c b/url.c
index f2b5e8b..d12f83b 100644
--- a/url.c
+++ b/url.c
@@ -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 &&