forked from forgejo/forgejo
#3559 fix template error
This commit is contained in:
parent
c2afdf2192
commit
dadd35b636
5 changed files with 10 additions and 11 deletions
|
@ -64,9 +64,7 @@ func editFile(ctx *context.Context, isNewFile bool) {
|
|||
|
||||
buf := make([]byte, 1024)
|
||||
n, _ := dataRc.Read(buf)
|
||||
if n > 0 {
|
||||
buf = buf[:n]
|
||||
}
|
||||
buf = buf[:n]
|
||||
|
||||
// Only text file are editable online.
|
||||
if !base.IsTextFile(buf) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue