mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
b8e6cffd31
Backport #28935 by @silverwind The `ToUTF8*` functions were stripping BOM, while BOM is actually valid in UTF8, so the stripping must be optional depending on use case. This does: - Add a options struct to all `ToUTF8*` functions, that by default will strip BOM to preserve existing behaviour - Remove `ToUTF8` function, it was dead code - Rename `ToUTF8WithErr` to `ToUTF8` - Preserve BOM in Monaco Editor - Remove a unnecessary newline in the textarea value. Browsers did ignore it, it seems but it's better not to rely on this behaviour. Fixes: https://github.com/go-gitea/gitea/issues/28743 Related: https://github.com/go-gitea/gitea/issues/6716 which seems to have once introduced a mechanism that strips and re-adds the BOM, but from what I can tell, this mechanism was removed at some point after that PR. Co-authored-by: silverwind <me@silverwind.io> |
1 year ago | |
---|---|---|
.. | ||
admin | 1 year ago | |
comp | 1 year ago | |
captcha.js | 2 years ago | |
citation.js | 1 year ago | |
clipboard.js | 1 year ago | |
codeeditor.js | 1 year ago | |
colorpicker.js | 2 years ago | |
common-global.js | 1 year ago | |
common-issue-list.js | 1 year ago | |
common-issue-list.test.js | 1 year ago | |
common-organization.js | 2 years ago | |
contextpopup.js | 2 years ago | |
copycontent.js | 1 year ago | |
dropzone.js | 2 years ago | |
emoji.js | 1 year ago | |
eventsource.sharedworker.js | 3 years ago | |
file-fold.js | 2 years ago | |
heatmap.js | 1 year ago | |
imagediff.js | 1 year ago | |
install.js | 1 year ago | |
notification.js | 2 years ago | |
org-team.js | 2 years ago | |
pull-view-file.js | 1 year ago | |
repo-branch.js | 2 years ago | |
repo-code.js | 2 years ago | |
repo-code.test.js | 1 year ago | |
repo-commit.js | 2 years ago | |
repo-common.js | 1 year ago | |
repo-diff-commit.js | 1 year ago | |
repo-diff-commitselect.js | 2 years ago | |
repo-diff-filetree.js | 2 years ago | |
repo-diff.js | 1 year ago | |
repo-editor.js | 2 years ago | |
repo-findfile.js | 2 years ago | |
repo-findfile.test.js | 1 year ago | |
repo-graph.js | 2 years ago | |
repo-home.js | 2 years ago | |
repo-issue-content.js | 1 year ago | |
repo-issue-list.js | 1 year ago | |
repo-issue-pr-form.js | 2 years ago | |
repo-issue.js | 1 year ago | |
repo-legacy.js | 1 year ago | |
repo-migrate.js | 1 year ago | |
repo-migration.js | 1 year ago | |
repo-projects.js | 1 year ago | |
repo-release.js | 2 years ago | |
repo-settings.js | 1 year ago | |
repo-template.js | 2 years ago | |
repo-unicode-escape.js | 2 years ago | |
repo-wiki.js | 2 years ago | |
sshkey-helper.js | 3 years ago | |
stopwatch.js | 2 years ago | |
tablesort.js | 2 years ago | |
tribute.js | 2 years ago | |
user-auth-webauthn.js | 1 year ago | |
user-auth.js | 2 years ago | |
user-settings.js | 2 years ago |