fail('length of comment or goto is too great')
end
+if COMMENT_TXT.length <= 2 or COMMENT_TXT =~ /\A\s*\Z/
+ fail('not enough content in comment')
+end
+
captchad = false
if cgi.has_key?('answer') && cgi.has_key?('question')
COMMENT_TXT])
if date
- new_count = $db.execute(query + 'and date > ?',date)
+ new_count = $db.execute(query + 'and date > ?', date)
else
new_count = $db.execute(query)
end
smtp.send_message msg, opts[:from], opts[:to]
end
end
- send_email :subject => 'new comments on iankelling.org'
+ send_email :subject => "new comment on #{DN}"
end
post(md_file)