summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <corvus@gnu.org>2009-07-27 21:39:46 -0700
committerJames E. Blair <corvus@gnu.org>2009-07-27 21:39:46 -0700
commit2352d654a798b81236c9d24cde115b51d9fd9c09 (patch)
tree8dd025246d43b7a5f13a9898b8d72ab3d8575010
parent27a1e2b02ad65f257a83110833dd11e6a2b13b58 (diff)
Return XMLRPC exceptions on invalid XMLRPC input for pingbacks.
-rw-r--r--quoins/controllers.py4
1 files 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):
261 261
262 @expose(content_type='text/xml') 262 @expose(content_type='text/xml')
263 def index(self): 263 def index(self):
264 params, method = xmlrpclib.loads(request.body)
265 log.debug('Pingback method: %s' % method)
266 try: 264 try:
265 params, method = xmlrpclib.loads(request.body)
266 log.debug('Pingback method: %s' % method)
267 if method != "pingback.ping": 267 if method != "pingback.ping":
268 raise AssertionError("method does not exist") 268 raise AssertionError("method does not exist")
269 269