mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 23:52:42 +01:00
Security: fix XSS attack on alert (#973)
This commit is contained in:
parent
6076c95dd1
commit
b8f70a27a5
1 changed files with 3 additions and 3 deletions
|
@ -1,15 +1,15 @@
|
||||||
{{if .Flash.ErrorMsg}}
|
{{if .Flash.ErrorMsg}}
|
||||||
<div class="ui negative message">
|
<div class="ui negative message">
|
||||||
<p>{{.Flash.ErrorMsg | Safe}}</p>
|
<p>{{.Flash.ErrorMsg | Str2html}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Flash.SuccessMsg}}
|
{{if .Flash.SuccessMsg}}
|
||||||
<div class="ui positive message">
|
<div class="ui positive message">
|
||||||
<p>{{.Flash.SuccessMsg | Safe}}</p>
|
<p>{{.Flash.SuccessMsg | Str2html}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Flash.InfoMsg}}
|
{{if .Flash.InfoMsg}}
|
||||||
<div class="ui info message">
|
<div class="ui info message">
|
||||||
<p>{{.Flash.InfoMsg | Safe}}</p>
|
<p>{{.Flash.InfoMsg | Str2html}}</p>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue