# HG changeset patch # User Pascal Volk # Date 1281060916 0 # Node ID b0c971f943dca7afc1326e7578fd4360098e3329 # Parent 6709d0faf2f5819661945b8345064b3927c0cc72 VMM/config: LazyConfig._get_section_option check for empty section/option names. diff -r 6709d0faf2f5 -r b0c971f943dc VirtualMailManager/config.py --- a/VirtualMailManager/config.py Thu Aug 05 23:26:23 2010 +0000 +++ b/VirtualMailManager/config.py Fri Aug 06 02:15:16 2010 +0000 @@ -122,7 +122,7 @@ """ sect_opt = section_option.lower().split('.') # TODO: cache it - if len(sect_opt) != 2: # do we need a regexp to check the format? + if len(sect_opt) != 2 or not sect_opt[0] or not sect_opt[1]: raise BadOptionError(_(u"Bad format: '%s' - expected: " u"section.option") % get_unicode(section_option))