Univention Bugzilla – Attachment 7413 Details for
Bug 30340
Rules with umlauts or slash in its name are corrupt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
30340.patch (text/plain), 1.24 KB, created by
Florian Best
on 2016-01-18 14:49:59 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-01-18 14:49:59 CET
Size:
1.24 KB
patch
obsolete
>diff --git a/ucs-school-umc-internetrules/umc/python/internetrules/__init__.py b/ucs-school-umc-internetrules/umc/python/internetrules/__init__.py >index 537000a..da71ed6 100644 >--- a/ucs-school-umc-internetrules/umc/python/internetrules/__init__.py >+++ b/ucs-school-umc-internetrules/umc/python/internetrules/__init__.py >@@ -140,8 +140,8 @@ class Instance(SchoolBaseModule): > raise ValueError(_('The key "%s" needs to be of type: %s') % (ikey, typeStr)) > > # validate name >- if 'name' in iprops and not univention.config_registry.validate_key(iprops['name'].encode('utf-8')): >- raise ValueError(_('Invalid rule name "%s". The name needs to be a string, the following special characters are not allowed: %s') % (iprops.get('name'), '!, ", §, $, %, &, (, ), [, ], {, }, =, ?, `, +, #, \', ",", ;, <, >, \\')) >+ if 'name' in iprops and not univention.config_registry.validate_key(iprops['name'].encode('utf-8')) or '/' in iprops['name']: >+ raise ValueError(_('Invalid rule name "%s". The name needs to be a string, the following special characters are not allowed: %s') % (iprops.get('name'), '!, ", §, $, %, &, (, ), [, ], {, }, =, ?, `, +, #, \', ",", ;, <, >, \\', '/')) > > # validate type > if 'type' in iprops and iprops['type'] not in _filterTypes:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30340
: 7413