User tests: Successful: Unsuccessful:
Pull Request for Issue # .
According to https://datatracker.ietf.org/doc/html/rfc3986#section-3.1 , protocol (or scheme) should consist of a sequence of characters beginning with a letter and followed by any combination of letters, digits, plus ("+"), period ("."), or hyphen ("-").
URIs with custom protocols containing +
, .
should not be prepended with base.
And URIs with custom protocols start with number or -
should be prepended with base.
Custom protocols like web+tea:
will be prepended with base.
Custom protocols like -http:
or 1http
will not be prepended with base.
Custom protocols like web+tea:
will not be prepended with base.
Custom protocols like -http:
or 1http
will be prepended with base.
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
This file uses libraries/vendor/joomla/uri/src/UriHelper.php
, which relies on parse_url()
. I've tested that parse_url()
allows URLs with non-alphabetic leading characters in the scheme. I'm uncertain whether this file also needs modification, given that it's related to PHP's built-in function behavior.
This seems ok. It appears to only allow a predefined list of URL schemes. And listed schemes won't meet this problem.
Do we also need to fix the checks in