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 df6fa5e commit 560fa09Copy full SHA for 560fa09
pkg/util/shellutil/shellquote.go
@@ -3,7 +3,10 @@
3
4
package shellutil
5
6
-import "regexp"
+import (
7
+ "log"
8
+ "regexp"
9
+)
10
11
const (
12
MaxQuoteSize = 10000000 // 10MB
@@ -150,5 +153,9 @@ func SoftQuote(s string) string {
150
153
}
151
154
152
155
func checkQuoteSize(s string) bool {
- return len(s) < MaxQuoteSize
156
+ if len(s) > MaxQuoteSize {
157
+ log.Printf("string too long to quote: %s", s)
158
+ return false
159
+ }
160
+ return true
161
0 commit comments