aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-29 16:58:06 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-29 16:58:06 +0000
commit673b0feb77011e539bce8f8dbda25de803a9b165 (patch)
tree4a6c4b541f6e183d26df805e68d274f97ea9a1de
parent[w3m-dev 03160] Re: "ttp:" is marked instead of "http:" by MARL_URL (diff)
downloadw3m-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>
-rw-r--r--ChangeLog8
-rw-r--r--main.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f302ec0..fef67bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-03-30 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [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.
+
2002-03-30 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03160] Re: "ttp:" is marked instead of "http:" by MARL_URL
@@ -3317,4 +3323,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.365 2002/03/29 16:39:37 ukai Exp $
+$Id: ChangeLog,v 1.366 2002/03/29 16:58:06 ukai Exp $
diff --git a/main.c b/main.c
index e6a787e..966524a 100644
--- a/main.c
+++ b/main.c
@@ -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:%\\-\\./=_+@#,\\$]*",