diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java index 0dd1f74264..26c8891fde 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java @@ -762,7 +762,7 @@ public static boolean isUrl(String s) { * @return true if s contains :// and not "component://" */ public static boolean urlInString(String s) { - if (isEmpty(s) || s.contains("component://")) { + if (isEmpty(s) || s.startsWith("component://")) { return false; } return s.indexOf("://") != -1;