Fixed XF\Validator\Url::isValid - URL link validation is too strict

Xon

Well-known member
Affected version
2.0.11
I've encountered a case where XF is not auto-linking a URL because the URL is considered malformed despite it being valid.

For example this url; https://xenforo.com//community/ will not auto-link but is a valid path to send to a webserver. That is with an empty path component when there is a schema defined.

From what I can read; this should be valid.
 
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in a future XF release (2.0.12).

Change log:
Relax URL validation a tiny bit, notably don't block adjacent path separators in the path section.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom