Fixes #4634, issue where spaces in bundle ids crashed sugar

This commit is contained in:
Sam 2013-12-25 21:19:04 +11:00
parent dee29c0e75
commit f43d5f8d24

View File

@ -139,6 +139,9 @@ class ActivityBundle(Bundle):
'Activity bundle %s does not specify a bundle id' %
self._path)
if ' ' in self._bundle_id:
raise MalformedBundleException('Space in bundle_id')
if cp.has_option(section, 'name'):
self._name = cp.get(section, 'name')
else: