From aff9ee566fdb638252b954287109c180b71979c7 Mon Sep 17 00:00:00 2001 From: Samuel FORESTIER Date: Sun, 22 Dec 2024 20:33:00 +0100 Subject: [PATCH] fix(web): don't use HTML entities when building URL (12c79539 fix-up) --- web/feed.go | 2 +- web/torrent.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/feed.go b/web/feed.go index 13d48f3c..abed4590 100644 --- a/web/feed.go +++ b/web/feed.go @@ -89,7 +89,7 @@ func feedHandler(w http.ResponseWriter, r *http.Request) { Type string `xml:"type,attr"` }{ URL: fmt.Sprintf( - "magnet:?xt=urn:btih:%s&dn=%s", + "magnet:?xt=urn:btih:%s&dn=%s", infohash, torrent.Name, ), diff --git a/web/torrent.go b/web/torrent.go index f1420769..5784e274 100644 --- a/web/torrent.go +++ b/web/torrent.go @@ -33,7 +33,7 @@ func torrent() g.Node { ID("title"), H2(g.Text("{{ name }}")), A( - Href("magnet:?xt=urn:btih:{{ infoHash }}&dn={{ name }}"), + Href("magnet:?xt=urn:btih:{{ infoHash }}&dn={{ name }}"), Img( Src("/static/assets/magnet.gif"), Alt("Magnet link"),