forgejo/modules/util
j. mccann 55cd4a6248 Don't manually replace whitespace during render
For historical reasons Gitea manually alters the urlPrefix and replaces
a whitespace with a +. This Works for URLs, but we're also passing
urlPrefix to git calls and adding the + is breaking the tree path.

Goldmark will automatically convert a white space to the proper %20, so
we should leave the string as is which lets us pass it to git unmodified
and then let Goldmark fix it.

Also fixed separate bug in URLJoin I noticed while testing where it will
silently discard sections of a path that have # in them (possibly
others). We should just escape it first.

Fixes 10156
2020-02-16 01:02:56 -05:00
..
compare.go Enable Uploading/Removing Attachments When Editing an Issue/Comment (#8426) 2019-10-15 13:19:32 +01:00
path.go Stop using git count-objects and use raw directory size for repository (#8848) 2019-11-10 21:33:47 +00:00
sanitize.go Sanitize credentials in mirror form (#9975) 2020-01-25 10:57:42 +00:00
sanitize_test.go Sanitize credentials in mirror form (#9975) 2020-01-25 10:57:42 +00:00
url.go Don't manually replace whitespace during render 2020-02-16 01:02:56 -05:00
util.go Convert EOL to UNIX-style to render MD properly (#8925) 2019-11-13 03:27:11 +01:00
util_test.go Convert EOL to UNIX-style to render MD properly (#8925) 2019-11-13 03:27:11 +01:00