Browse Source

Security: fix XSS attack on alert

pull/4135/head
Unknwon 8 years ago
parent
commit
57cb23ac81
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 6
      templates/base/alert.tmpl

6
templates/base/alert.tmpl

@ -1,15 +1,15 @@
{{if .Flash.ErrorMsg}}
<div class="ui negative message">
<p>{{.Flash.ErrorMsg | Safe}}</p>
<p>{{.Flash.ErrorMsg | Str2html}}</p>
</div>
{{end}}
{{if .Flash.SuccessMsg}}
<div class="ui positive message">
<p>{{.Flash.SuccessMsg | Safe}}</p>
<p>{{.Flash.SuccessMsg | Str2html}}</p>
</div>
{{end}}
{{if .Flash.InfoMsg}}
<div class="ui info message">
<p>{{.Flash.InfoMsg | Safe}}</p>
<p>{{.Flash.InfoMsg | Str2html}}</p>
</div>
{{end}}

Loading…
Cancel
Save