Ver código fonte

버그 수정 / 세부 ver 삭제

2DU 8 anos atrás
pai
commit
7f8675e539
2 arquivos alterados com 3 adições e 4 exclusões
  1. 1 2
      app.py
  2. 2 2
      mark.py

+ 1 - 2
app.py

@@ -41,7 +41,6 @@ from func import *
 BaseRequest.MEMFILE_MAX = 1000 ** 4
 
 r_ver = '2.3.6'
-p_ver = ''
 
 try:
     curs.execute("select title from data limit 1")
@@ -1851,7 +1850,7 @@ def other():
                                     '== 관리자 ==\r\n' + \
                                     ' * [[wiki:manager/1|관리자 메뉴]]\r\n' + \
                                     '== 버전 ==\r\n' + \
-                                    '이 오픈나무는 [[https://github.com/2DU/openNAMU/blob/SQLite/version.md|' + r_ver + p_ver + ']]판 입니다.', 0, 0, 0),
+                                    '이 오픈나무는 [[https://github.com/2DU/openNAMU/blob/SQLite/version.md|' + r_ver + ']]판 입니다.', 0, 0, 0),
                 menu = 0
             )
         )

+ 2 - 2
mark.py

@@ -539,7 +539,7 @@ def link(title, data, num, category):
                 else:
                     backlink_plus(title, href.replace('\\', ''), '', num)
                     
-                    curs.execute("select title from data where title = ?", [href.replace('\\', '')])
+                    curs.execute("select title from data where title = ?", [href.replace(''', "'").replace('"', '"')])
                     if(not curs.fetchall()):
                         no = 'class="not_thing"'
                         backlink_plus(title, href.replace('\\', ''), 'no', num)
@@ -547,7 +547,7 @@ def link(title, data, num, category):
                         no = ''
                     
                     a = href.replace('\\', '').replace(''', "'").replace('"', '"')
-                    data = link.sub('<a ' + no + ' title="' + a + sh + '" href="/w/' + url_pas(a) + sh + '">' + view + '</a>', data, 1)
+                    data = link.sub('<a ' + no + ' title="' + href + sh + '" href="/w/' + url_pas(a) + sh + '">' + view + '</a>', data, 1)
         else:
             break