diff options
author | Felix Boerner <ich@felix-boerner.de> | 2022-04-22 21:05:35 +0300 |
---|---|---|
committer | Felix Boerner <ich@felix-boerner.de> | 2022-04-22 21:09:30 +0300 |
commit | b4bbd943ffd7bfeb7d8000879850c06509fb8b23 (patch) | |
tree | 5101b47a9611c5bb92bb3f6faa0b268b7f4b950d | |
parent | ecd812de86cff57dede4569d9e56642d62c77bac (diff) |
fix: add function to prevent unsafe urls
Closes #14
-rw-r--r-- | layouts/partials/links.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/links.html b/layouts/partials/links.html index a0b50f6..ecfe949 100644 --- a/layouts/partials/links.html +++ b/layouts/partials/links.html @@ -8,7 +8,7 @@ <h3>{{ $list.heading }}</h3> <ul> {{ range $list.link }} - <li><a href="{{ .url }}" title="{{ .text }}">{{ .text }}</a></li> + <li><a href="{{ .url | safeURL }}" title="{{ .text }}">{{ .text }}</a></li> {{ end }} </ul> </div> |