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.
yp05327 22a39bb961
Fix profile render when the README.md size is larger than 1024 bytes (#25131)
Fixes https://github.com/go-gitea/gitea/issues/25094

`GetBlobContent` will only get the first 1024 bytes, if the README.md
size is larger than 1024 bytes,
We can not render the rest of them.
After this fix, we should provide the limited size to read when call
`GetBlobContent`.

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/22a42936-4cf8-40b4-a5c7-e384082beb0d)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 year ago
..
filebuffer Add Debian package registry (#24426) 1 year ago
rotatingfilewriter Rewrite logger system (#24726) 1 year ago
color.go Modify luminance calculation and extract related functions into single files (#24586) 1 year ago
color_test.go Modify luminance calculation and extract related functions into single files (#24586) 1 year ago
error.go Use ErrInvalidArgument in packages (#22268) 2 years ago
file_unix.go Implement FSFE REUSE for golang files (#21840) 2 years ago
file_unix_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
file_windows.go Implement FSFE REUSE for golang files (#21840) 2 years ago
io.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 1 year ago
io_test.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 1 year ago
keypair.go Add Alpine package registry (#23714) 1 year ago
keypair_test.go Use minio/sha256-simd for accelerated SHA256 (#23052) 1 year ago
legacy.go Implement FSFE REUSE for golang files (#21840) 2 years ago
legacy_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pack.go Add support for incoming emails (#22056) 1 year ago
pack_test.go Add support for incoming emails (#22056) 1 year ago
paginate.go Implement FSFE REUSE for golang files (#21840) 2 years ago
paginate_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
path.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
path_test.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
remove.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sanitize.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sanitize_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sec_to_time.go Implement FSFE REUSE for golang files (#21840) 2 years ago
sec_to_time_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
shellquote.go Implement FSFE REUSE for golang files (#21840) 2 years ago
shellquote_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
slice.go Improve utils of slices (#22379) 2 years ago
slice_test.go Use more specific test methods (#24265) 1 year ago
string.go Implement FSFE REUSE for golang files (#21840) 2 years ago
string_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
timer.go Rewrite queue (#24505) 1 year ago
timer_test.go Use a general approach to access custom/static/builtin assets (#24022) 1 year ago
truncate.go Add ability to set multiple redirect URIs in OAuth application UI (#25072) 1 year ago
truncate_test.go Use more specific test methods (#24265) 1 year ago
url.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util.go Merge template functions "dict/Dict/mergeinto" (#23932) 1 year ago
util_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago