diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-29 16:58:06 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-03-29 16:58:06 +0000 |
commit | 673b0feb77011e539bce8f8dbda25de803a9b165 (patch) | |
tree | 4a6c4b541f6e183d26df805e68d274f97ea9a1de /main.c | |
parent | [w3m-dev 03160] Re: "ttp:" is marked instead of "http:" by MARL_URL (diff) | |
download | w3m-673b0feb77011e539bce8f8dbda25de803a9b165.tar.gz w3m-673b0feb77011e539bce8f8dbda25de803a9b165.zip |
[w3m-dev 03162] Re: "ttp:" is marked instead of "http:" by MARL_URL
* main.c (chkURLBuffer): "mailto" removed when USE_W3MMAILER
in this case, chkExternalURIBuffer() will mark mailto: URL.
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.95 2002/03/29 16:32:00 ukai Exp $ */ +/* $Id: main.c,v 1.96 2002/03/29 16:58:06 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -4354,7 +4354,9 @@ chkURLBuffer(Buffer *buf) "news:[^<> ][^<> ]*", "nntp://[a-zA-Z0-9][a-zA-Z0-9:%\\-\\./_]*", #endif /* USE_NNTP */ +#ifndef USE_W3MMAILER /* see also chkExternalURIBuffer() */ "mailto:[^<> ][^<> ]*@[a-zA-Z0-9][a-zA-Z0-9\\-\\._]*[a-zA-Z0-9]", +#endif #ifdef INET6 "https?://[a-zA-Z0-9:%\\-\\./_@]*\\[[a-fA-F0-9:][a-fA-F0-9:\\.]*\\][a-zA-Z0-9:%\\-\\./?=~_\\&+@#,\\$;]*", "ftp://[a-zA-Z0-9:%\\-\\./_@]*\\[[a-fA-F0-9:][a-fA-F0-9:\\.]*\\][a-zA-Z0-9:%\\-\\./=_+@#,\\$]*", |