Skip to content

Commit

Permalink
Only warn on bidi but still escape non-bidi
Browse files Browse the repository at this point in the history
Fix go-gitea#18324

Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath committed Jan 19, 2022
1 parent 4a20ead commit 7fab7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/repo/unicode_escape_prompt.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</div>
<p>{{$.root.i18n.Tr "repo.bidi_bad_description" | Str2html}}</p>
</div>
{{else if .EscapeStatus.Escaped}}
{{else if .EscapeStatus.HasBIDI}}
<div class="ui warning message unicode-escape-prompt">
<span class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</span>
<div class="header">
Expand Down

0 comments on commit 7fab7b0

Please sign in to comment.