瀏覽代碼

버그 수정

ect (or 2du) 8 年之前
父節點
當前提交
7bad465b20
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      set_mark/start.py

+ 2 - 0
set_mark/start.py

@@ -116,6 +116,8 @@ def start(conn, data, title):
     # XSS 이스케이프
     data = html.escape(data)
     data = re.sub('&lt;(?P<in>(table|row)? ?(text|bg|border|width|height|class)?(color|align)?(=(((?!&gt;).)+))|\(|:|\)|(-|\|)[0-9]+|(#(?:[0-9a-f-A-F]{3}){1,2})|(\w+))&gt;', '<\g<in>>', data)
+    data = re.sub('&#x27;&#x27;&#x27;(?P<in>((?!&#x27;&#x27;&#x27;).)+)&#x27;&#x27;&#x27;', '\'\'\'\g<in>\'\'\'', data)
+    data = re.sub('&#x27;&#x27;(?P<in>((?!&#x27;&#x27;).)+)&#x27;&#x27;', '\'\'\g<in>\'\'', data)
 
     # 추가 데이터 지정
     plus_data = ''