0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-21 22:01:18 +01:00

Security: fix XSS attack on alert (#973)

This commit is contained in:
Lunny Xiao 2017-02-19 19:18:06 +08:00 committed by GitHub
parent 6076c95dd1
commit b8f70a27a5

View file

@ -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}}