diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-05-12 21:32:05 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-05-12 21:32:05 +0200 |
commit | 9f01c820a5db26964a5a436b3d4f98b71a3b6f58 (patch) | |
tree | fe97d70151f9a423343c4d0a60b978de3b61c311 /skate | |
parent | 4d185d6f050a87e908e772709b55a0a35e32f999 (diff) | |
download | refcat-9f01c820a5db26964a5a436b3d4f98b71a3b6f58.tar.gz refcat-9f01c820a5db26964a5a436b3d4f98b71a3b6f58.zip |
skate-cleanup: sanitize url
Diffstat (limited to 'skate')
-rw-r--r-- | skate/cmd/skate-cleanup/main.go | 2 |
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" } |