Skip to content

Commit f044a7e

Browse files
committed
Updated method to check if the string starts with component:// instead of merely containing it.
1 parent 1c94327 commit f044a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/base/src/main/java/org/apache/ofbiz/base/util/UtilValidate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ public static boolean isUrl(String s) {
762762
* @return true if s contains :// and not "component://"
763763
*/
764764
public static boolean urlInString(String s) {
765-
if (isEmpty(s) || s.contains("component://")) {
765+
if (isEmpty(s) || s.startsWith("component://")) {
766766
return false;
767767
}
768768
return s.indexOf("://") != -1;

0 commit comments

Comments
 (0)