Update to Drupal 8.1.5. For more information, see https://www.drupal.org/project/drupal/releases/8.1.5
This commit is contained in:
parent
13b6ca7cc2
commit
38ba7c357d
342 changed files with 7814 additions and 1534 deletions
|
@ -272,7 +272,11 @@ class Url {
|
|||
if ($uri_parts === FALSE) {
|
||||
throw new \InvalidArgumentException("The URI '$uri' is malformed.");
|
||||
}
|
||||
if (empty($uri_parts['scheme'])) {
|
||||
// We support protocol-relative URLs.
|
||||
if (strpos($uri, '//') === 0) {
|
||||
$uri_parts['scheme'] = '';
|
||||
}
|
||||
elseif (empty($uri_parts['scheme'])) {
|
||||
throw new \InvalidArgumentException("The URI '$uri' is invalid. You must use a valid URI scheme.");
|
||||
}
|
||||
$uri_parts += ['path' => ''];
|
||||
|
|
Reference in a new issue