updated core to 7.58

This commit is contained in:
2018-04-24 14:08:28 +02:00
parent 2c2dd76ece
commit 870831757c
140 changed files with 664 additions and 396 deletions

View File

@@ -2236,8 +2236,11 @@ function url($path = NULL, array $options = array()) {
'prefix' => ''
);
// Determine whether this is an external link, but ensure that the current
// path is always treated as internal by default (to prevent external link
// injection vulnerabilities).
if (!isset($options['external'])) {
$options['external'] = url_is_external($path);
$options['external'] = $path === $_GET['q'] ? FALSE : url_is_external($path);
}
// Preserve the original path before altering or aliasing.