This is an automated email from the ASF dual-hosted git repository. deepak pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new b719d2283b Updated method to check if the string starts with component:// instead of merely containing it. b719d2283b is described below commit b719d2283b88fe7747445832f246629f50ce0cf7 Author: Deepak Dixit <dee...@apache.org> AuthorDate: Sat Sep 7 02:45:46 2024 +0530 Updated method to check if the string starts with component:// instead of merely containing it. --- .../base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1d0215ddf0..674a3cb6d5 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 @@ -638,7 +638,7 @@ public final class UtilValidate { * @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;