Skip to content

Commit 7b0c673

Browse files
committed
fix(vendor): Remove excessive URL validation
Fixes cloudposse#1019
1 parent 300ca0f commit 7b0c673

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/exec/go_getter_utils.go

-5
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,13 @@ func ValidateURI(uri string) error {
2727
if len(uri) > 2048 {
2828
return fmt.Errorf("URI exceeds maximum length of 2048 characters")
2929
}
30-
// Add more validation as needed
3130
// Validate URI format
3231
if strings.Contains(uri, "..") {
3332
return fmt.Errorf("URI cannot contain path traversal sequences")
3433
}
3534
if strings.Contains(uri, " ") {
3635
return fmt.Errorf("URI cannot contain spaces")
3736
}
38-
// Validate characters
39-
if strings.ContainsAny(uri, "<>|&;$") {
40-
return fmt.Errorf("URI contains invalid characters")
41-
}
4237
// Validate scheme-specific format
4338
if strings.HasPrefix(uri, "oci://") {
4439
if !strings.Contains(uri[6:], "/") {

0 commit comments

Comments
 (0)