Skip to content

Commit

Permalink
Security: fix XSS attack on alert (go-gitea#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Feb 19, 2017
1 parent 6076c95 commit b8f70a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/base/alert.tmpl
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit b8f70a2

Please sign in to comment.