diff options
author | Guillermo Guerrero Ibarra <wolf.fox1985@gmail.com> | 2021-09-06 00:40:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 00:40:02 +0300 |
commit | a66012965897579f404593ef4a8808a5e5620925 (patch) | |
tree | c56c230b33b1c60b88dc42a17e17db195d2ef010 /layouts | |
parent | 152f9787d9078c5aed3ecb8c9b3f455934ff9657 (diff) |
Safe topbar links. (#324)1.2.4
Co-authored-by: Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/top.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/top.html b/layouts/partials/top.html index fd4b7a9..25351ad 100644 --- a/layouts/partials/top.html +++ b/layouts/partials/top.html @@ -9,7 +9,7 @@ <div class="col-xs-7"> <div class="social"> {{ range .Site.Menus.topbar.ByWeight }} - <a href="{{ .URL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a> + <a href="{{ .URL | safeURL }}" target="_blank" style="opacity: 1;">{{ .Pre }}</a> {{ end }} </div> </div> |