comparison MoinMoin/xmlrpc/__init__.py @ 3049:ed9b1e5cf0e1

fix MoinMoinBugs/XmlRpcPutPageAllowsEmptyPageName (thanks to Jonas Wagner) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 19 Feb 2008 23:21:58 +0100
parents 06547d7df727
children 2a3a6cb34e45
comparison
equal deleted inserted replaced
3048:1e9444f35a22 3049:ed9b1e5cf0e1
524 @rtype: bool 524 @rtype: bool
525 @return: true on success 525 @return: true on success
526 """ 526 """
527 527
528 pagename = self._instr(pagename) 528 pagename = self._instr(pagename)
529
530 if not pagename:
531 return xmlrpclib.Fault("INVALID", "pagename can't be empty")
529 532
530 # check ACLs 533 # check ACLs
531 if not self.request.user.may.write(pagename): 534 if not self.request.user.may.write(pagename):
532 return xmlrpclib.Fault(1, "You are not allowed to edit this page") 535 return xmlrpclib.Fault(1, "You are not allowed to edit this page")
533 536