Revert "caddyfile: Reject long heredoc markers (#6098)" (#6100)

This reverts commit e7a534d0a3.
This commit is contained in:
Mohammed Al Sahaf 2024-02-12 21:06:22 +03:00 committed by GitHub
parent f9e11158bc
commit 21744b6c4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 40 deletions

View file

@ -16,7 +16,6 @@ package caddyfile
import (
"bytes"
"fmt"
"io"
"unicode"
@ -119,10 +118,6 @@ func Format(input []byte) []byte {
heredoc = heredocClosed
} else {
heredocMarker = append(heredocMarker, ch)
if len(heredocMarker) > 32 {
errorString := fmt.Sprintf("heredoc marker too long: <<%s", string(heredocMarker))
panic(errorString)
}
write(ch)
continue
}