fix XSS on opengraph tags

This commit is contained in:
2020-12-07 22:23:29 +01:00
parent 69e3a34d86
commit e35e6b0f45
8 changed files with 95 additions and 97 deletions

View File

@@ -19,7 +19,7 @@
<link rel="shortcut icon" sizes="196x196" href="/res/img/pixeldrain_196.png" />
<meta name="theme-color" content="#75AD38"/>
{{.OGData}}
{{ template "opengraph" .OGData }}
<script>
const initialNode = {{.Other}};
window.api_endpoint = '{{.APIEndpoint}}';