aboutsummaryrefslogtreecommitdiffstats
path: root/local.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2007-04-19 12:07:02 +0000
committerDai Sato <satodai@w3m.jp>2007-04-19 12:07:02 +0000
commit5441e3a0aea53bfb7a1a65c9baf01999f6ebd93d (patch)
tree855a5a7456ced383f4a841fbd91199caf048b939 /local.c
parentavoid conflicts between input_alt and img_alt, and fix calculation of labeled... (diff)
downloadw3m-5441e3a0aea53bfb7a1a65c9baf01999f6ebd93d.tar.gz
w3m-5441e3a0aea53bfb7a1a65c9baf01999f6ebd93d.zip
quote URLs with non-ASCII local directory names. [w3m-dev 04212]
Diffstat (limited to 'local.c')
-rw-r--r--local.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/local.c b/local.c
index 8da1fc7..d7cd3f0 100644
--- a/local.c
+++ b/local.c
@@ -1,4 +1,4 @@
-/* $Id: local.c,v 1.33 2006/04/07 13:21:11 inu Exp $ */
+/* $Id: local.c,v 1.34 2007/04/19 12:07:04 inu Exp $ */
#include "fm.h"
#include <string.h>
#include <stdio.h>
@@ -85,7 +85,8 @@ loadLocalDir(char *dname)
Strcat_char(dirname, '/');
qdir = html_quote(Str_conv_from_system(dirname)->ptr);
/* FIXME: gettextize? */
- tmp = Strnew_m_charp("<HTML>\n<HEAD>\n<BASE HREF=\"file://", qdir,
+ tmp = Strnew_m_charp("<HTML>\n<HEAD>\n<BASE HREF=\"file://",
+ html_quote(file_quote(dirname->ptr)),
"\">\n<TITLE>Directory list of ", qdir,
"</TITLE>\n</HEAD>\n<BODY>\n<H1>Directory list of ",
qdir, "</H1>\n", NULL);