Skip to content

Commit 7fab7b0

Browse files
committed
Only warn on bidi but still escape non-bidi
Fix go-gitea#18324 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 4a20ead commit 7fab7b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/unicode_escape_prompt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</div>
88
<p>{{$.root.i18n.Tr "repo.bidi_bad_description" | Str2html}}</p>
99
</div>
10-
{{else if .EscapeStatus.Escaped}}
10+
{{else if .EscapeStatus.HasBIDI}}
1111
<div class="ui warning message unicode-escape-prompt">
1212
<span class="close icon hide-panel button" data-panel-closest=".message">{{svg "octicon-x" 16 "close inside"}}</span>
1313
<div class="header">

0 commit comments

Comments
 (0)