Ver Fonte

버그 수정

잉여개발기 (SPDV) há 5 anos atrás
pai
commit
c19a46bda6
2 ficheiros alterados com 5 adições e 3 exclusões
  1. 4 2
      route/edit_move.py
  2. 1 1
      version.json

+ 4 - 2
route/edit_move.py

@@ -7,6 +7,10 @@ def edit_move_2(conn, name):
         return re_error('/ban')
 
     if flask.request.method == 'POST':
+        move_title = flask.request.form.get('title', 'test')
+        if acl_check(move_title) == 1:
+            return re_error('/ban')
+
         if captcha_post(flask.request.form.get('g-recaptcha-response', flask.request.form.get('g-recaptcha', ''))) == 1:
             return re_error('/error/13')
         else:
@@ -15,8 +19,6 @@ def edit_move_2(conn, name):
         if slow_edit_check() == 1:
             return re_error('/error/24')
 
-        move_title = flask.request.form.get('title', 'test')
-
         curs.execute(db_change("select title from history where title = ?"), [move_title])
         if curs.fetchall():
             if flask.request.form.get('move_option', 'normal') == 'merge' and admin_check(None, 'merge documents') == 1:

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.2.0-master-16",
+        "r_ver" : "v3.2.0-master-17",
         "c_ver" : "3201601",
         "s_ver" : "9"
     }, "stable" : {