From c15162c5823f4035d9c465e69bd8aec6728f6829 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Tue, 9 Sep 2025 00:55:14 +1000 Subject: [PATCH] fix (plg_backend_url): handle yet another apache format --- server/plugin/plg_backend_url/index.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/plugin/plg_backend_url/index.go b/server/plugin/plg_backend_url/index.go index 9deb225c..1ed78e7a 100644 --- a/server/plugin/plg_backend_url/index.go +++ b/server/plugin/plg_backend_url/index.go @@ -157,6 +157,7 @@ func (this Url) processLink(link string, n *html.Node) *File { extractASPNetList, extractApacheList, extractApacheList2, + extractApacheList3, } { if s, t, err := extr(n); err == nil { fSize = s @@ -308,6 +309,12 @@ var extractApacheList2 = extract( nodeApacheExtract, ) +var extractApacheList3 = extract( + regexp.MustCompile(`([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2})`+`[ \xA0]+`+`([0-9]+(?:\.[0-9]+)?|-)`+`[ \xA0]*`+`[kKMGT]?`), + "2006-01-02 15:04", + nodeApacheExtract, +) + func (this *Url) Home() (string, error) { return this.home, nil }