Ver Fonte

버그 수정

Surplus_Up (2DU) há 6 anos atrás
pai
commit
63dccca035
4 ficheiros alterados com 6 adições e 3 exclusões
  1. 1 1
      route/api_w.py
  2. 1 1
      route/tool/func.py
  3. 1 1
      version.json
  4. 3 0
      views/main_css/js/load_include.js

+ 1 - 1
route/api_w.py

@@ -24,7 +24,7 @@ def api_w_2(conn, name):
                         category_re = re.compile('\[\[(?:(?:category|분류):(?:(?!\[\[|\]\]).)+)\]\]', re.I)
 
                         json_data = include_re.sub('', data[0][0])
-                        json_data = category_re.sub('', json_data, )
+                        json_data = category_re.sub('', json_data)
 
                         g_data = render_set(title = name, data = json_data, num = 2, include = flask.request.args.get('include', 'include_1'))
                     else:

+ 1 - 1
route/tool/func.py

@@ -396,7 +396,7 @@ def other2(data):
         data += ['']
 
     req_list = ''
-    main_css_ver = 2
+    main_css_ver = 3
 
     if not 'main_css_load' in flask.session or not 'main_css_ver' in flask.session or flask.session['main_css_ver'] != main_css_ver:
         for i_data in os.listdir(os.path.join("views", "main_css", "css")):

+ 1 - 1
version.json

@@ -1,6 +1,6 @@
 {
     "master" : {
-        "r_ver" : "v3.1.6-master-03",
+        "r_ver" : "v3.1.6-master-04",
         "c_ver" : "400008",
         "s_ver" : "7"
     }, "stable" : {

+ 3 - 0
views/main_css/js/load_include.js

@@ -16,6 +16,9 @@ function load_include(title, name, p_data) {
                 try {
                     var patt = new RegExp('@' + p_data[key][0] + '@', 'g');
                     g_data = g_data.replace(patt, p_data[key][1]);
+
+                    patt = new RegExp(encodeURIComponent('@' + p_data[key][0] + '@', 'g'));
+                    g_data = g_data.replace(patt, encodeURIComponent(p_data[key][1]));
                 } catch(e) {
                     console.log(e);
                 }