diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-23 20:06:40 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-23 20:06:40 +0000 |
commit | ad69eb843afe10645784843f5eead9b4de503f54 (patch) | |
tree | 3dd76f2094f39ab0637d0b94932be909f54880c5 /main.c | |
parent | [w3m-dev 02526] new configure (diff) | |
download | w3m-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.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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++) { |