webtitle update

This commit is contained in:
shadow1ng 2021-05-20 09:34:27 +08:00
parent 4f3ff608ab
commit f5c9667f91
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func geturl(info *common.HostInfo, flag int, CheckData []WebScan.CheckDatas) (er
return err, "", CheckData
}
if flag != 2 {
re := regexp.MustCompile("(?im)<title>(.*)</title>")
re := regexp.MustCompile("(?ims)<title>(.*)</title>")
find := re.FindSubmatch(body)
if len(find) > 1 {
text = find[1]