summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-01-19 19:24:15 +0000
committerGitHub <noreply@github.com>2022-01-19 19:24:15 +0000
commit6779d9726ffe9d36b0c596c0ba4235e5a182ae75 (patch)
treef613d6d605a6d787f944e7b39babf20f8689af63
parent6fba17460600261f0450468ab3b048789a423703 (diff)
downloadgitea-6779d9726ffe9d36b0c596c0ba4235e5a182ae75.tar.gz
gitea-6779d9726ffe9d36b0c596c0ba4235e5a182ae75.zip
Only warn on bidi but still escape non-bidi (#18333)
Fix #18324 Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r--templates/repo/unicode_escape_prompt.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/unicode_escape_prompt.tmpl b/templates/repo/unicode_escape_prompt.tmpl
index 855d7866a3..ea1e199f2c 100644
--- a/templates/repo/unicode_escape_prompt.tmpl
+++ b/templates/repo/unicode_escape_prompt.tmpl
@@ -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">