增加文件上传功能

This commit is contained in:
virusdefender
2019-03-12 14:40:47 +08:00
parent 7df98245e4
commit c192304fd8
4 changed files with 42 additions and 6 deletions

View File

@@ -142,7 +142,7 @@ class XSSHtml(HTMLParser):
return attrs
def _true_url(self, url):
prog = re.compile(r"^(http|https|ftp)://.+", re.I | re.S)
prog = re.compile(r"(^(http|https|ftp)://.+)|(^/)", re.I | re.S)
if prog.match(url):
return url
else: