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.
gitea/modules/util
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>
2 years ago
..
filebuffer Add Debian package registry (#24426) 2 years ago
rotatingfilewriter Rewrite logger system (#24726) 2 years ago
color.go Modify luminance calculation and extract related functions into single files (#24586) 2 years ago
color_test.go Modify luminance calculation and extract related functions into single files (#24586) 2 years 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) 2 years ago
io_test.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
keypair.go Add Alpine package registry (#23714) 2 years ago
keypair_test.go Use minio/sha256-simd for accelerated SHA256 (#23052) 2 years 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) 2 years ago
pack_test.go Add support for incoming emails (#22056) 2 years 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) 2 years ago
path_test.go Use a general approach to access custom/static/builtin assets (#24022) 2 years 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) 2 years 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) 2 years ago
timer_test.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
truncate.go Add ability to set multiple redirect URIs in OAuth application UI (#25072) 2 years ago
truncate_test.go Use more specific test methods (#24265) 2 years ago
url.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util.go Merge template functions "dict/Dict/mergeinto" (#23932) 2 years ago
util_test.go Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 2 years ago