You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2026/06/01 03:39:21 UTC

(groovy) 01/03: reject backslash in grape ivy coordinate validation

This is an automated email from the ASF dual-hosted git repository.

paulk-asert pushed a commit to branch GROOVY_5_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 81575187cbc194a5d6fc0e52d0673d75b5aa8279
Author: netliomax25-code <ne...@gmail.com>
AuthorDate: Sun May 31 22:29:42 2026 +0530

    reject backslash in grape ivy coordinate validation
---
 src/main/groovy/groovy/grape/GrapeIvy.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/groovy/groovy/grape/GrapeIvy.groovy b/src/main/groovy/groovy/grape/GrapeIvy.groovy
index b2d6a61217..6fb9279a5b 100644
--- a/src/main/groovy/groovy/grape/GrapeIvy.groovy
+++ b/src/main/groovy/groovy/grape/GrapeIvy.groovy
@@ -210,7 +210,7 @@ class GrapeIvy implements GrapeEngine {
         dep.each { k, v ->
             if (v instanceof CharSequence) {
                 if (k.toString().contains('v')) { // revision, version, rev
-                    if (!(v ==~ '[^\\/:"<>|]*')) {
+                    if (!(v ==~ '[^\\\\/:"<>|]*')) {
                         throw new RuntimeException("Grab: invalid value of '$v' for $k: should not contain any of / \\ : \" < > |")
                     }
                 } else {