From 9f01c820a5db26964a5a436b3d4f98b71a3b6f58 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 12 May 2021 21:32:05 +0200 Subject: skate-cleanup: sanitize url --- skate/cmd/skate-cleanup/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'skate/cmd') diff --git a/skate/cmd/skate-cleanup/main.go b/skate/cmd/skate-cleanup/main.go index 969c53c..1965f08 100644 --- a/skate/cmd/skate-cleanup/main.go +++ b/skate/cmd/skate-cleanup/main.go @@ -16,6 +16,7 @@ import ( "runtime" "strings" + "git.archive.org/martin/cgraph/skate" "git.archive.org/martin/cgraph/skate/parallel" "mvdan.cc/xurls/v2" ) @@ -68,6 +69,7 @@ func urlFilter(p []byte) ([]byte, error) { if url == "" && *skipNonMatches { return nil, nil } + url = skate.SanitizeURL(url) if len(parts) == 1 || *index == len(parts) { url = url + "\n" } -- cgit v1.2.3