diff options
author | Geoffrey Thomas <geofft@MIT.EDU> | 2012-10-18 15:42:49 -0700 |
---|---|---|
committer | Karl Ramm <kcr@1ts.org> | 2012-11-24 18:11:47 -0500 |
commit | 090cf270e57a2ded9787f62bf9f40e89bb929675 (patch) | |
tree | f7c93e4d7200d677da8e698ac46d1b13622f541d /clients | |
parent | a7d9e97a5e17ea6e690f9fca86c4b76f3d102cd9 (diff) |
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.
Diffstat (limited to 'clients')
-rw-r--r-- | clients/zwrite/zwrite.c | 15 |
1 files changed, 2 insertions, 13 deletions
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); |