aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/partials/scripts.html
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-04-28 22:17:43 +0300
committerXhmikosR <[email protected]>2020-05-07 20:53:21 +0300
commit2bd3bd842d5ec67078a42f3d09ad240fa596979a (patch)
treef050db767ff3c0889cf7440f1e599cc94a1400ba /site/layouts/partials/scripts.html
parent737b6925ab64b431d47b24ed1bb3c450143872d1 (diff)
downloadbootstrap-2bd3bd842d5ec67078a42f3d09ad240fa596979a.tar.xz
bootstrap-2bd3bd842d5ec67078a42f3d09ad240fa596979a.zip
Use `safeHTMLAttr` in the `integrity` attributes.
Diffstat (limited to 'site/layouts/partials/scripts.html')
-rw-r--r--site/layouts/partials/scripts.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html
index afe7bd812..d7c694641 100644
--- a/site/layouts/partials/scripts.html
+++ b/site/layouts/partials/scripts.html
@@ -1,5 +1,5 @@
{{ if eq hugo.Environment "production" -}}
- <script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ .Site.Params.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
+ <script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }} crossorigin="anonymous"></script>
{{ else -}}
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
{{- end }}