[PATCH] fix for decode error in trackback plugin

Junji NAKANISHI <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
Hello,

If non-ASCII characters is included in trackback ping, UnicodeDecodeError occures in trackback.py.
I made a patch for this problem, please apply this for the next version.


--- trackback.py.orig   Sun Oct 15 03:24:03 2006
+++ trackback.py        Sun Oct 15 03:26:32 2006
@@ -87,6 +87,8 @@
         message = "A trackback must have at least a URL field (see http://www.sixapart.com/pronet/docs/trackback_spec )"

         if form.has_key("url"):
+            from comments import decode_form
+            decode_form(form, config['blog_encoding'])
             import time
             cdict = { 'title': form.getvalue('title', ''), \
                       'author': 'Trackback from %s' % form.getvalue('blog_name', ''), \


-- 
Junji NAKANISHI <[email protected]>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.