Skip to content

Commit

Permalink
remove character url validate
Browse files Browse the repository at this point in the history
  • Loading branch information
haitham911 committed Dec 28, 2024
1 parent 4e8c172 commit 26fb6f6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/exec/vendor_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,6 @@ func validateURI(uri string) error {
if strings.Contains(uri, " ") {
return fmt.Errorf("URI cannot contain spaces")
}
// Validate characters
if strings.ContainsAny(uri, "<>|&;$") {
return fmt.Errorf("URI contains invalid characters")
}
// Validate scheme-specific format
if strings.HasPrefix(uri, "oci://") {
if !strings.Contains(uri[6:], "/") {
Expand Down

0 comments on commit 26fb6f6

Please sign in to comment.