mirror of https://github.com/zulip/zulip.git
Fix buggy class name validation regex.
A-z != A-Z. The former permits problematic characters like "\". (imported from commit 2bcda8683e630eaa6cbc3a2b9d0bda7a8448a8fa)
This commit is contained in:
parent
588db5b4c5
commit
ec36170511
|
@ -405,7 +405,7 @@ def json_remove_subscription(request):
|
|||
return json_success({"data": sub_name})
|
||||
|
||||
def valid_class_name(name):
|
||||
return re.match('^[a-z A-z0-9_-]+$', name)
|
||||
return re.match('^[a-z A-Z0-9_-]+$', name)
|
||||
|
||||
@login_required
|
||||
@require_post
|
||||
|
|
Loading…
Reference in New Issue