mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
feat(lanzou): remove comments from share page data in getFilesByShareUrl function
This commit is contained in:
parent
d0a8df768e
commit
c088f64567
@ -348,6 +348,10 @@ func (d *LanZou) getFilesByShareUrl(shareID, pwd string, sharePageData string) (
|
||||
file FileOrFolderByShareUrl
|
||||
)
|
||||
|
||||
// 删除注释
|
||||
sharePageData = RemoveNotes(sharePageData)
|
||||
sharePageData = RemoveJSComment(sharePageData)
|
||||
|
||||
// 需要密码
|
||||
if strings.Contains(sharePageData, "pwdload") || strings.Contains(sharePageData, "passwddiv") {
|
||||
sharePageData, err := getJSFunctionByName(sharePageData, "down_p")
|
||||
|
Loading…
x
Reference in New Issue
Block a user