diff --git a/modules/markup/csv/csv.go b/modules/markup/csv/csv.go index aeba98f5d622d..dfcee4eca378c 100644 --- a/modules/markup/csv/csv.go +++ b/modules/markup/csv/csv.go @@ -5,9 +5,9 @@ package markup import ( "bufio" + "code.gitea.io/gitea/modules/util" "html" "io" - "net/url" "regexp" "strconv" @@ -134,18 +134,18 @@ func (r Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.W // Check if maxRows or maxSize is reached, and if true, warn. if (row >= maxRows && maxRows != 0) || (rd.InputOffset() >= maxSize && maxSize != 0) { warn := `