0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 06:18:39 +01:00
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>
2023-06-13 09:02:25 +00:00
..
filebuffer Add Debian package registry (#24426) 2023-05-02 12:31:35 -04:00
rotatingfilewriter Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
color_test.go Modify luminance calculation and extract related functions into single files (#24586) 2023-05-10 11:19:03 +00:00
color.go Modify luminance calculation and extract related functions into single files (#24586) 2023-05-10 11:19:03 +00:00
error.go
file_unix_test.go
file_unix.go
file_windows.go
io_test.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2023-06-13 09:02:25 +00:00
io.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2023-06-13 09:02:25 +00:00
keypair_test.go
keypair.go Add Alpine package registry (#23714) 2023-05-12 17:27:50 +00:00
legacy_test.go
legacy.go
pack_test.go
pack.go
paginate_test.go
paginate.go
path_test.go
path.go
remove.go
sanitize_test.go
sanitize.go
sec_to_time_test.go
sec_to_time.go
shellquote_test.go
shellquote.go
slice_test.go Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
slice.go
string_test.go
string.go
timer_test.go
timer.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
truncate_test.go Use more specific test methods (#24265) 2023-04-22 17:56:27 -04:00
truncate.go Add ability to set multiple redirect URIs in OAuth application UI (#25072) 2023-06-05 15:00:12 +08:00
url.go
util_test.go
util.go