- last update
about 1 year ago Patch Failed to Apply
Updated: Comment #N
Currently the URL utility \Drupal\Component\Utility\Url
just can validate (Url::isValid()
) URL's with a defined scheme. However, an URL isn't required to explicitly define a scheme:
http://tools.ietf.org/html/rfc3986#section-4.2
http://url.spec.whatwg.org/#concept-scheme-relative-url
This functionality can become quite handy and we should support such URL structures.
Make sure the URL utility properly validates scheme relative URL's. To do so I suggest to adjust Url::isValid()
to not explicitly check for schemes (https / ftp / feed) but instead check the pattern defined by RFC 3986 section 3.1 and allow scheme relative URLs at the same time.
Checking the scheme should be fully upon Url::stripDangerousProtocols()
instead.
Reviews needed
None
None
Needs work
11.0 π₯
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.