aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDai Sato <satodai@dog.intcul.tohoku.ac.jp>2003-03-13 15:15:40 +0000
committerDai Sato <satodai@dog.intcul.tohoku.ac.jp>2003-03-13 15:15:40 +0000
commit1e1a9cb257aa328a8b08410f4fdd8a5019efd911 (patch)
tree1885692e19bbc65d16da006f73fd227506826cfd
parent[w3m-dev 03819] support cd build && ../configure (diff)
downloadw3m-1e1a9cb257aa328a8b08410f4fdd8a5019efd911.tar.gz
w3m-1e1a9cb257aa328a8b08410f4fdd8a5019efd911.zip
treatment for "%7E" is added to expandName()
Diffstat (limited to '')
-rw-r--r--ChangeLog6
-rw-r--r--etc.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0dc1b98..b8342a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-13 Dai Sato <satodai@dog.intcul.tohoku.ac.jp>
+
+ * etc.c: treatment for "%7E" is added to expandName()
+
2003-03-13 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03819] support cd build && ../configure
@@ -7521,4 +7525,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.791 2003/03/12 18:27:03 ukai Exp $
+$Id: ChangeLog,v 1.792 2003/03/13 15:15:40 inu Exp $
diff --git a/etc.c b/etc.c
index 5cad793..223fd22 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,4 @@
-/* $Id: etc.c,v 1.67 2003/02/26 17:22:02 ukai Exp $ */
+/* $Id: etc.c,v 1.68 2003/03/13 15:15:47 inu Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -1552,7 +1552,9 @@ expandName(char *name)
return NULL;
p = name;
if (*p == '/') {
- if (*(p + 1) == '~' && IS_ALPHA(*(p + 2)) && personal_document_root) {
+ if ( (*(p + 1) == '~' && IS_ALPHA(*(p + 2)) )
+ || ( strncmp( p+1, "%7", 2 ) == 0 && tolower( *(p+3) ) == 'e' )
+ && personal_document_root) {
char *q;
p += 2;
q = strchr(p, '/');