0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-24 00:26:32 +01:00
gitea/routers/web/repo
wxiaoguang ce9dee5a1e
Introduce path Clean/Join helper functions (#23495)
Since #23493 has conflicts with latest commits, this PR is my proposal
for fixing #23371

Details are in the comments

And refactor the `modules/options` module, to make it always use
"filepath" to access local files.

Benefits:

* No need to do `util.CleanPath(strings.ReplaceAll(p, "\\", "/"))),
"/")` any more (not only one before)
* The function behaviors are clearly defined
2023-03-21 16:02:49 -04:00
..
actions Add workflow error notification in ui (#23404) 2023-03-14 15:27:03 +08:00
activity.go
attachment.go Preserve file size when creating attachments (#23406) 2023-03-12 03:48:07 -04:00
blame.go
branch.go Make branches list page operations remember current page (#23420) 2023-03-14 13:11:38 +08:00
cherry_pick.go
commit.go
compare.go Fix tags sort by creation time (descending) on branch/tag dropdowns (#23491) 2023-03-16 12:01:10 -05:00
download.go
editor_test.go
editor.go Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
find.go
http_test.go
http.go
issue_content_history.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go
lfs.go Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects_test.go
projects.go Show edit/close/delete button on organization wide repositories (#23388) 2023-03-12 14:36:47 +01:00
pull_review.go
pull.go
release_test.go
release.go
render.go
repo.go
runners.go
search.go
setting_protected_branch.go
setting_secrets.go
setting.go
settings_test.go
tag.go
topic.go
treelist.go
view_test.go
view.go Replace repo.namedBlob by git.TreeEntry. (#22898) 2023-03-15 16:51:39 -05:00
webhook.go Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
wiki_test.go
wiki.go