aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 20:06:40 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-23 20:06:40 +0000
commitad69eb843afe10645784843f5eead9b4de503f54 (patch)
tree3dd76f2094f39ab0637d0b94932be909f54880c5 /main.c
parent[w3m-dev 02526] new configure (diff)
downloadw3m-ad69eb843afe10645784843f5eead9b4de503f54.tar.gz
w3m-ad69eb843afe10645784843f5eead9b4de503f54.zip
[w3m-dev 02528] RFC2732 URL Patch
From: Akihiro Sagawa <sagawa@sohgoh.net>
Diffstat (limited to '')
-rw-r--r--main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/main.c b/main.c
index 636eb0c..c1de7a9 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.17 2001/11/23 19:00:47 ukai Exp $ */
+/* $Id: main.c,v 1.18 2001/11/23 20:06:40 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -4000,7 +4000,14 @@ chkURL(void)
"nntp://[a-zA-Z0-9][a-zA-Z0-9:%\\-\\./_]*",
#endif /* USE_NNTP */
"mailto:[^<> ][^<> ]*@[a-zA-Z0-9][a-zA-Z0-9\\-\\._]*[a-zA-Z0-9]",
- NULL,
+#ifdef INET6
+ "http://[a-zA-Z0-9:%\\-\\./_@]*\\[[a-fA-F0-9:][a-fA-F0-9:\\.]*\\][a-zA-Z0-9:%\\-\\./?=~_\\&+@#,\\$]*",
+#ifdef USE_SSL
+ "https://[a-zA-Z0-9:%\\-\\./_@]*\\[[a-fA-F0-9:][a-fA-F0-9:\\.]*\\][a-zA-Z0-9:%\\-\\./?=~_\\&+@#,\\$]*",
+#endif /* USE_SSL */
+ "ftp://[a-zA-Z0-9:%\\-\\./_@]*\\[[a-fA-F0-9:][a-fA-F0-9:\\.]*\\][a-zA-Z0-9:%\\-\\./=_+@#,\\$]*",
+#endif /* INET6 */
+ NULL
};
int i;
for (i = 0; url_like_pat[i]; i++) {