From a0969526f9cecc60f964ffc2a6ff0e91be5ebbd3 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Sun, 26 Apr 2009 01:07:02 +0200 Subject: Spam avoidance: * Added a blacklist --- blacklist | 1 + blogthon.cgi | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 blacklist diff --git a/blacklist b/blacklist new file mode 100644 index 0000000..4c4e75e --- /dev/null +++ b/blacklist @@ -0,0 +1 @@ +viagra diff --git a/blogthon.cgi b/blogthon.cgi index 3872c7f..14dafdb 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -99,6 +99,8 @@ if cname and ctext and ctitle: .replace(">", ">") \ .replace("\"", """) + # TODO: Read file with spam words + # Add comment comments_file = glob.glob(entries_dir + ctitle + '.comments') if not comments_file: -- cgit v1.2.3