Update to Drupal 8.0.3. For more information, see https://www.drupal.org/drupal-8.0.3-release-notes
This commit is contained in:
parent
10f9f7fbde
commit
9db4fae9a7
202 changed files with 3806 additions and 760 deletions
|
@ -293,6 +293,11 @@ class Url {
|
|||
* @see \Drupal\Core\Url::fromUserInput()
|
||||
*/
|
||||
public static function fromUri($uri, $options = []) {
|
||||
// parse_url() incorrectly parses base:number/... as hostname:port/...
|
||||
// and not the scheme. Prevent that by prefixing the path with a slash.
|
||||
if (preg_match('/^base:\d/', $uri)) {
|
||||
$uri = str_replace('base:', 'base:/', $uri);
|
||||
}
|
||||
$uri_parts = parse_url($uri);
|
||||
if ($uri_parts === FALSE) {
|
||||
throw new \InvalidArgumentException("The URI '$uri' is malformed.");
|
||||
|
|
Reference in a new issue