From bf9e58ada7eec4fdf87a8078d100fc22ce4ad5d5 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Thu, 13 Sep 2012 17:44:21 -0700 Subject: [PATCH] Validate "wikimode" subreddit setting. --- r2/r2/controllers/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index 674b65aab..2092a668e 100755 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -1510,7 +1510,8 @@ class ApiController(RedditController, OAuth2ResourceController): form.find('#example_title').hide() elif form.has_errors('domain', errors.BAD_CNAME, errors.USED_CNAME): form.find('#example_domain').hide() - elif (form.has_errors(('type', 'link_type'), errors.INVALID_OPTION) or + elif (form.has_errors(('type', 'link_type', 'wikimode'), + errors.INVALID_OPTION) or form.has_errors('public_description', errors.TOO_LONG) or form.has_errors('description', errors.TOO_LONG)): pass