From 090cf270e57a2ded9787f62bf9f40e89bb929675 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Thu, 18 Oct 2012 15:42:49 -0700 Subject: zwrite: Replace outgoing default format with a small URL We need the bytes, no modern client uses it, and it's inherently a security vulnerability. For those clients that do use it, provide a link to a page on the zephyr wiki that explains the issue. --- clients/zwrite/zwrite.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'clients') diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c index 240fdd4..41d2bf3 100644 --- a/clients/zwrite/zwrite.c +++ b/clients/zwrite/zwrite.c @@ -237,19 +237,8 @@ main(int argc, char *argv[]) notice.z_charset = ZGetCharset(charset); if (format) notice.z_default_format = format; - else if (filsys == 1) - notice.z_default_format = "@b(Filesystem Info Message for $instance)\nFrom: @b($sender) @ $time $date\n$message"; - else if (auth == ZAUTH) { - if (signature) - notice.z_default_format = "Class $class Instance $instance\nTo @b($recipient) @ $time $date\nFrom @b($1) <$sender>\n\n$2"; - else - notice.z_default_format = "Class $class Instance $instance\nTo @b($recipient) @ $time $date\n$message"; - } else { - if (signature) - notice.z_default_format = "@b(UNAUTHENTIC) Class $class Instance $instance @ $time $date\nFrom @b($1) <$sender>\n\n$2"; - else - notice.z_default_format = "@b(UNAUTHENTIC) Class $class Instance $instance @ $time $date\n$message"; - } + else + notice.z_default_format = "http://zephyr.1ts.org/wiki/df"; if (!nocheck && nrecips) send_off(¬ice, 0); -- cgit v1.2.3