You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed: IndexOutOfBoundsException in UtilHttp for unlisted TLDs (OFBIZ-13389) (#1185)
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.
0 commit comments