Mercurial > public > src > moin > 1.9
changeset 5998:603cb1f82ae1 default tip
CopyPage action: fix NameError exception when TextCha was answered wrong
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Mon, 15 Jul 2013 19:19:17 +0200 |
parents | 6de72050e1b9 |
children | |
files | MoinMoin/action/CopyPage.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/action/CopyPage.py Wed Jun 12 12:19:50 2013 +0200 +++ b/MoinMoin/action/CopyPage.py Mon Jul 15 19:19:17 2013 +0200 @@ -49,7 +49,7 @@ # Currently we only check TextCha for upload (this is what spammers ususally do), # but it could be extended to more/all attachment write access if not TextCha(self.request).check_answer_from_form(): - return status, _('TextCha: Wrong answer! Go back and try again...') + return False, _('TextCha: Wrong answer! Go back and try again...') form = self.form newpagename = form.get('newpagename', u'')