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:
Jessica McKellar 2012-10-02 12:30:56 -04:00
parent 588db5b4c5
commit ec36170511
1 changed files with 1 additions and 1 deletions

View File

@ -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