Fix verify method for empty string input values. This is necessary for plone.app.discussion 1.0b5 compatibility.
svn path=/plone.formwidget.captcha/trunk/; revision=37130
This commit is contained in:
parent
92264f81fb
commit
c0a14efbb1
|
@ -1,6 +1,13 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
1.0b2 - unreleased
|
||||
------------------
|
||||
|
||||
* Fix verify method for empty string input values. This is necessary for
|
||||
plone.app.discussion 1.0b5 compatibility.
|
||||
[timo]
|
||||
|
||||
1.0b1 - 2010-06-02
|
||||
------------------
|
||||
|
||||
|
|
|
@ -104,6 +104,8 @@ class Captcha(BrowserView):
|
|||
return self._url('audio')
|
||||
|
||||
def verify(self, input):
|
||||
if not input:
|
||||
return False
|
||||
result = False
|
||||
try:
|
||||
for word in self._generate_words():
|
||||
|
|
Reference in New Issue