updated core to 7.58
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user