updated core to 7.60

This commit is contained in:
2018-10-22 17:43:13 +02:00
parent a163542966
commit d5096cf9ad
135 changed files with 460 additions and 394 deletions

View File

@@ -8,7 +8,7 @@
/**
* The current system version.
*/
define('VERSION', '7.59');
define('VERSION', '7.60');
/**
* Core API compatibility.

View File

@@ -2311,7 +2311,10 @@ function url($path = NULL, array $options = array()) {
$language = isset($options['language']) && isset($options['language']->language) ? $options['language']->language : '';
$alias = drupal_get_path_alias($original_path, $language);
if ($alias != $original_path) {
$path = $alias;
// Strip leading slashes from internal path aliases to prevent them
// becoming external URLs without protocol. /example.com should not be
// turned into //example.com.
$path = ltrim($alias, '/');
}
}