changeset 591:19bcf1c6ddc6

parser.bbb_create: check for empty passwords
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 31 May 2012 15:27:38 +0200
parents b17f6afb108f
children 8659634e0b29
files data/plugin/parser/bbb_create.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/bbb_create.py	Thu May 31 15:16:35 2012 +0200
+++ b/data/plugin/parser/bbb_create.py	Thu May 31 15:27:38 2012 +0200
@@ -60,7 +60,7 @@
         msg = ""
         attendee_password = content["attendee_password"]
         moderator_password = content["moderator_password"]
-        if not attendee_password or not moderator_password:
+        if not attendee_password.strip() or not moderator_password.strip():
             wiki_parser = wikiutil.importPlugin(self.request.cfg, "parser", "text_moin_wiki", None)
             wiki_parser = wiki_parser.Parser(self.raw, self.request)
             wiki_parser.format(formatter)