Skip to content

Commit

Permalink
fix(web): don't use HTML entities when building URL (12c7953 fix-up)
Browse files Browse the repository at this point in the history
  • Loading branch information
HorlogeSkynet authored and tgragnato committed Dec 22, 2024
1 parent 4d1097f commit aff9ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
2 changes: 1 addition & 1 deletion web/torrent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit aff9ee5

Please sign in to comment.