summaryrefslogtreecommitdiffstats
path: root/modules/templates/htmlrenderer_test.go
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-06-21 00:51:26 -0400
committerGitHub <noreply@github.com>2023-06-21 04:51:26 +0000
commit8302b95d6bfdbc40083a72e5d1b727fcb1e00940 (patch)
tree470eb05db1149b9ef171d26fb2ecd54c6524fe2c /modules/templates/htmlrenderer_test.go
parent6f1c95ec5b951347f549972a8699b05be5d3f634 (diff)
downloadgitea-8302b95d6bfdbc40083a72e5d1b727fcb1e00940.tar.gz
gitea-8302b95d6bfdbc40083a72e5d1b727fcb1e00940.zip
Avoid polluting config file when "save" (#25395) (#25406)
Backport #25395 by @wxiaoguang That's a longstanding INI package problem: the "MustXxx" calls change the option values, and the following "Save" will save a lot of garbage options into the user's config file. Ideally we should refactor the INI package to a clear solution, but it's a huge work. A clear workaround is what this PR does: when "Save", load a clear INI instance and save it. Partially fix #25377, the "install" page needs more fine tunes. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/templates/htmlrenderer_test.go')
0 files changed, 0 insertions, 0 deletions