mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 08:48:18 -05:00
wiki: Ensure to normalize page name on create check.
This commit is contained in:
@@ -310,6 +310,9 @@ class VWikiPageRevise(VWikiPage):
|
||||
# Should not happen, but just in case
|
||||
self.set_error('EMPTY_PAGE_NAME', 403)
|
||||
return
|
||||
|
||||
page = normalize_page(page)
|
||||
|
||||
if c.is_wiki_mod and WikiPage.is_special(page):
|
||||
return {'reason': 'PAGE_CREATED_ELSEWHERE'}
|
||||
elif (not c.user_is_admin) and WikiPage.is_restricted(page):
|
||||
|
||||
Reference in New Issue
Block a user