diff options
author | Dai Sato <satodai@dog.intcul.tohoku.ac.jp> | 2003-03-13 15:15:40 +0000 |
---|---|---|
committer | Dai Sato <satodai@dog.intcul.tohoku.ac.jp> | 2003-03-13 15:15:40 +0000 |
commit | 1e1a9cb257aa328a8b08410f4fdd8a5019efd911 (patch) | |
tree | 1885692e19bbc65d16da006f73fd227506826cfd /etc.c | |
parent | [w3m-dev 03819] support cd build && ../configure (diff) | |
download | w3m-1e1a9cb257aa328a8b08410f4fdd8a5019efd911.tar.gz w3m-1e1a9cb257aa328a8b08410f4fdd8a5019efd911.zip |
treatment for "%7E" is added to expandName()
Diffstat (limited to 'etc.c')
-rw-r--r-- | etc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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, '/'); |