From 2352d654a798b81236c9d24cde115b51d9fd9c09 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 27 Jul 2009 21:39:46 -0700 Subject: Return XMLRPC exceptions on invalid XMLRPC input for pingbacks. --- quoins/controllers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quoins/controllers.py b/quoins/controllers.py index 1f9e971..089ada2 100644 --- a/quoins/controllers.py +++ b/quoins/controllers.py @@ -261,9 +261,9 @@ class Pingback(TGController): @expose(content_type='text/xml') def index(self): - params, method = xmlrpclib.loads(request.body) - log.debug('Pingback method: %s' % method) try: + params, method = xmlrpclib.loads(request.body) + log.debug('Pingback method: %s' % method) if method != "pingback.ping": raise AssertionError("method does not exist") -- cgit v1.2.3