csaboka commented on PR #84:
URL: 
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/84#issuecomment-1314107147

   @rombert : I can't say I understand this code completely, either. I'm not 
even sure if the "if" block you highlighted can ever be entered. 
MapEntries.ANY_SCHEME_HOST equals "[^/]+/[^/]+", but if the "url" variable 
contains any square brackets, the isRegExp() check on line 182 will cause an 
early return. Therefore, we know that the url cannot start with ANY_SCHEME_HOST 
at that point.
   
   I agree with @cziegeler that this change seems to be right, but there is no 
easy way to tell if something is subtly depending on the current (IMO broken) 
behavior.


-- 
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]

Reply via email to