diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:37:09 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:37:09 +0000 |
commit | 589c1c02114bad169d81b1210e76a5de3b53b725 (patch) | |
tree | 2043f89f98d08dbd0a0ee9203a5ee6f8f7ffece8 /main.c | |
parent | add comments (diff) | |
download | w3m-589c1c02114bad169d81b1210e76a5de3b53b725.tar.gz w3m-589c1c02114bad169d81b1210e76a5de3b53b725.zip |
[w3m-dev 03021] Bug#132934: w3m should recognize file:/uris
in chkURLBuffer function
* main.c (chkURLBuffer): add "file:"
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.80 2002/02/07 14:44:47 ukai Exp $ */ +/* $Id: main.c,v 1.81 2002/02/08 11:37:09 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -4314,6 +4314,7 @@ chkURLBuffer(Buffer *buf) { static char *url_like_pat[] = { "https?://[a-zA-Z0-9][a-zA-Z0-9:%\\-\\./?=~_\\&+@#,\\$;]*[a-zA-Z0-9_/=]", + "file:/[a-zA-Z0-9:%\\-\\./=_\\+@#,\\$;]*", #ifdef USE_GOPHER "gopher://[a-zA-Z0-9][a-zA-Z0-9:%\\-\\./_]*", #endif /* USE_GOPHER */ |