View | Details | Raw Unified | Return to bug 30340
Collapse All | Expand All

(-)a/ucs-school-umc-internetrules/umc/python/internetrules/__init__.py (-2 / +2 lines)
 Lines 140-147   class Instance(SchoolBaseModule): Link Here 
140
				raise ValueError(_('The key "%s" needs to be of type: %s') % (ikey, typeStr))
140
				raise ValueError(_('The key "%s" needs to be of type: %s') % (ikey, typeStr))
141
141
142
		# validate name
142
		# validate name
143
		if 'name' in iprops and not univention.config_registry.validate_key(iprops['name'].encode('utf-8')):
143
		if 'name' in iprops and not univention.config_registry.validate_key(iprops['name'].encode('utf-8')) or '/' in iprops['name']:
144
			raise ValueError(_('Invalid rule name "%s". The name needs to be a string, the following special characters are not allowed: %s') % (iprops.get('name'), '!, ", §, $, %, &, (, ), [, ], {, }, =, ?, `, +, #, \', ",", ;, <, >, \\'))
144
			raise ValueError(_('Invalid rule name "%s". The name needs to be a string, the following special characters are not allowed: %s') % (iprops.get('name'), '!, ", §, $, %, &, (, ), [, ], {, }, =, ?, `, +, #, \', ",", ;, <, >, \\', '/'))
145
145
146
		# validate type
146
		# validate type
147
		if 'type' in iprops and iprops['type'] not in _filterTypes:
147
		if 'type' in iprops and iprops['type'] not in _filterTypes:

Return to bug 30340