coheigea commented on a change in pull request #58:
URL:
https://github.com/apache/santuario-xml-security-java/pull/58#discussion_r702684294
##########
File path:
src/main/java/org/apache/xml/security/utils/resolver/ResourceResolverContext.java
##########
@@ -51,4 +57,12 @@ public ResourceResolverContext(Attr attr, String baseUri,
boolean secureValidati
return properties;
}
+ public boolean isSafeURIToResolve() {
+ if (allowUnsafeResourceResolving) {
+ return true;
+ }
+ boolean forbiddenURI = (uriToResolve != null &&
(uriToResolve.startsWith("file:") || uriToResolve.startsWith("http:")))
Review comment:
I think we don't need to do this, as the resource resolvers only handle
lower case file/http URLs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]