diff --git a/blogthon.cgi b/blogthon.cgi index a648abe..a9c4023 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -21,6 +21,9 @@ import cgi, os, time, glob, re, md5, sys, random, smtplib import ConfigParser +# A wonderful place for doing some regexp ;) +no_break = re.compile('^\s*(
|
).*$') + def generate_uuid(string): string_md5sum = md5.new(string).hexdigest() string = str.join('-', (string_md5sum[0:8], string_md5sum[8:12], string_md5sum[12:16], string_md5sum[16:20], string_md5sum[20:32])) @@ -407,7 +410,7 @@ else: print '' for line in content: - if re.search('