Fixes #4634, issue where spaces in bundle ids crashed sugar
This commit is contained in:
parent
dee29c0e75
commit
f43d5f8d24
@ -139,6 +139,9 @@ class ActivityBundle(Bundle):
|
|||||||
'Activity bundle %s does not specify a bundle id' %
|
'Activity bundle %s does not specify a bundle id' %
|
||||||
self._path)
|
self._path)
|
||||||
|
|
||||||
|
if ' ' in self._bundle_id:
|
||||||
|
raise MalformedBundleException('Space in bundle_id')
|
||||||
|
|
||||||
if cp.has_option(section, 'name'):
|
if cp.has_option(section, 'name'):
|
||||||
self._name = cp.get(section, 'name')
|
self._name = cp.get(section, 'name')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user