aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-02-08 11:37:09 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-02-08 11:37:09 +0000
commit589c1c02114bad169d81b1210e76a5de3b53b725 (patch)
tree2043f89f98d08dbd0a0ee9203a5ee6f8f7ffece8 /main.c
parentadd comments (diff)
downloadw3m-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 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 66ec6a5..6bc837d 100644
--- a/main.c
+++ b/main.c
@@ -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 */