aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-12 15:34:34 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-12 15:34:34 +0000
commit4cb999da4e5d90be7e7853dbe77145f357fac485 (patch)
treef10977e16d43e6f4f0ab081cc50cee3081be01ed
parent[w3m-dev 02829] (diff)
downloadw3m-4cb999da4e5d90be7e7853dbe77145f357fac485.tar.gz
w3m-4cb999da4e5d90be7e7853dbe77145f357fac485.zip
[w3m-dev 02828]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--url.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e5fdf6c..109a677 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-13 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 02828]
+ * url.c (_parsedURL2Str): add '/' at the end when scheme is SCM_FTPDIR
+
2002-01-12 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02829]
@@ -1886,4 +1891,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.211 2002/01/12 13:33:47 ukai Exp $
+$Id: ChangeLog,v 1.212 2002/01/12 15:34:34 ukai Exp $
diff --git a/url.c b/url.c
index 9c122a1..c7fc0ee 100644
--- a/url.c
+++ b/url.c
@@ -1,4 +1,4 @@
-/* $Id: url.c,v 1.31 2002/01/12 13:33:47 ukai Exp $ */
+/* $Id: url.c,v 1.32 2002/01/12 15:34:34 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -1138,6 +1138,8 @@ _parsedURL2Str(ParsedURL *pu, int pass)
)))
Strcat_char(tmp, '/');
Strcat_charp(tmp, pu->file);
+ if (pu->scheme == SCM_FTPDIR && Strlastchar(tmp) != '/')
+ Strcat_char(tmp, '/');
if (pu->query) {
Strcat_char(tmp, '?');
Strcat_charp(tmp, pu->query);