We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6447b3e commit f48a863Copy full SHA for f48a863
routers/web/repo/view.go
@@ -716,14 +716,11 @@ func checkCitationFile(ctx *context.Context, entry *git.TreeEntry) {
716
return
717
}
718
defer dataRc.Close()
719
- buf := make([]byte, 1024)
720
- n, err := util.ReadAtMost(dataRc, buf)
+ ctx.PageData["citationFileContent"], err = blob.GetBlobContent(setting.UI.MaxDisplayFileSize)
721
if err != nil {
722
- ctx.ServerError("ReadAtMost", err)
+ ctx.ServerError("GetBlobContent", err)
723
724
725
- buf = buf[:n]
726
- ctx.PageData["citationFileContent"] = string(buf)
727
break
728
729
0 commit comments