allow for URLs that are references to ISO standards (urn:std:)
This commit is contained in:
parent
40642c2263
commit
836863e372
|
@ -1090,7 +1090,8 @@ public class Utilities {
|
||||||
|
|
||||||
|
|
||||||
public static boolean isAbsoluteUrl(String ref) {
|
public static boolean isAbsoluteUrl(String ref) {
|
||||||
return ref != null && (ref.startsWith("http:") || ref.startsWith("https:") || ref.startsWith("urn:uuid:") || ref.startsWith("urn:oid:"));
|
return ref != null && (ref.startsWith("http:") || ref.startsWith("https:") || ref.startsWith("urn:uuid:") || ref.startsWith("urn:oid:") ||
|
||||||
|
Utilities.startsWithInList(ref, "urn:iso:", "urn:iso-iec:", "urn:iso-cie:", "urn:iso-astm:", "urn:iso-ieee:", "urn:iec:")); // rfc5141
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue