mridulpathak opened a new pull request, #1186: URL: https://github.com/apache/ofbiz-framework/pull/1186
Fixed: IndexOutOfBoundsException in UtilHttp for unlisted TLDs (OFBIZ-13389). - Exact URL match had redundant indexOf checks for protocols which `UtilValidate.isValidUrl()` already validates, causing https urls to slip thru. Removed redundant checks. - The `extractUrls()` regex had a hardcoded list of TLDs, made the regex generic and validating the URL with `UtilValidate.isValidUrl()` now. - Added empty check to avoid `IndexOutOfBoundsException`. Thanks: Vitaly Repetenko for reporting the issue. -- 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]
