aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-05-12 21:32:05 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-05-12 21:32:05 +0200
commit9f01c820a5db26964a5a436b3d4f98b71a3b6f58 (patch)
treefe97d70151f9a423343c4d0a60b978de3b61c311 /skate/cmd
parent4d185d6f050a87e908e772709b55a0a35e32f999 (diff)
downloadrefcat-9f01c820a5db26964a5a436b3d4f98b71a3b6f58.tar.gz
refcat-9f01c820a5db26964a5a436b3d4f98b71a3b6f58.zip
skate-cleanup: sanitize url
Diffstat (limited to 'skate/cmd')
-rw-r--r--skate/cmd/skate-cleanup/main.go2
1 files changed, 2 insertions, 0 deletions
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"
}