forgejo/routers/web/repo
zeripath 21ed4fd8da
Add warning for BIDI characters in page renders and in diffs ()
Fix 

Given the comments I've adjusted this somewhat. The numbers of characters detected are increased and include things like the use of U+300 to make à instead of à and non-breaking spaces.

There is a button which can be used to escape the content to show it.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Gwyneth Morgan <gwymor@tilde.club>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-01-07 02:18:52 +01:00
..
activity.go
attachment.go Move attachment into models/repo/ () 2021-11-19 21:39:57 +08:00
blame.go Add warning for BIDI characters in page renders and in diffs () 2022-01-07 02:18:52 +01:00
branch.go Refactor HTTP request context () 2021-12-15 14:59:57 +08:00
commit.go Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE () 2022-01-05 13:17:25 +01:00
compare.go Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE () 2022-01-05 13:17:25 +01:00
download.go Move repository model into models/repo () 2021-12-10 09:27:50 +08:00
editor.go Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE () 2022-01-05 13:17:25 +01:00
editor_test.go
http.go Refactor auth package () 2022-01-02 21:12:35 +08:00
http_test.go
issue.go Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE () 2022-01-05 13:17:25 +01:00
issue_content_history.go
issue_dependency.go
issue_label.go Use a standalone struct name for Organization () 2021-11-19 19:41:40 +08:00
issue_label_test.go Decouple unit test, remove intermediate unittestbridge package () 2021-11-16 16:53:21 +08:00
issue_lock.go
issue_stopwatch.go Multiple Escaping Improvements () 2021-11-16 18:18:25 +00:00
issue_test.go A better go code formatter, and now make fmt can run in Windows () 2021-11-17 20:34:35 +08:00
issue_timetrack.go
issue_watch.go
lfs.go Add warning for BIDI characters in page renders and in diffs () 2022-01-07 02:18:52 +01:00
main_test.go
middlewares.go Move user related model into models/user () 2021-11-24 17:49:20 +08:00
migrate.go Unify and simplify TrN for i18n () 2022-01-02 04:33:57 +01:00
milestone.go Multiple Escaping Improvements () 2021-11-16 18:18:25 +00:00
projects.go Removed unused method. () 2021-12-30 11:56:12 +08:00
projects_test.go
pull.go Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE () 2022-01-05 13:17:25 +01:00
pull_review.go
release.go Load EasyMDE/CodeMirror dynamically, remove RequireEasyMDE () 2022-01-05 13:17:25 +01:00
release_test.go Decouple unit test, remove intermediate unittestbridge package () 2021-11-16 16:53:21 +08:00
repo.go Unify and simplify TrN for i18n () 2022-01-02 04:33:57 +01:00
search.go
setting.go Remove unused route "/tasks/trigger" () 2022-01-03 18:23:43 +01:00
setting_protected_branch.go Move repository model into models/repo () 2021-12-10 09:27:50 +08:00
settings_test.go Move keys to models/asymkey () 2021-12-10 16:14:24 +08:00
tag.go Move repository model into models/repo () 2021-12-10 09:27:50 +08:00
topic.go Some repository refactors () 2021-12-12 23:48:20 +08:00
view.go Add warning for BIDI characters in page renders and in diffs () 2022-01-07 02:18:52 +01:00
webhook.go Add replay of webhooks. () 2022-01-05 15:00:20 -06:00
wiki.go Add warning for BIDI characters in page renders and in diffs () 2022-01-07 02:18:52 +01:00
wiki_test.go Move repository model into models/repo () 2021-12-10 09:27:50 +08:00