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
file_unix.go
file_unix_test.go
file_windows.go
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
legacy.go
legacy_test.go
pack.go
pack_test.go
paginate.go
paginate_test.go
path.go
path_test.go
remove.go
sanitize.go
sanitize_test.go
sec_to_time.go
sec_to_time_test.go
shellquote.go
shellquote_test.go
slice.go
slice_test.go
string.go
string_test.go
timer.go Rewrite queue (#24505) 2 years ago
timer_test.go
truncate.go Add ability to set multiple redirect URIs in OAuth application UI (#25072) 2 years ago
truncate_test.go
url.go
util.go
util_test.go