From cd9e90e8d8c064cef2122dbc11e32d0dfa4170e5 Mon Sep 17 00:00:00 2001 From: Mert Susur Date: Wed, 26 Apr 2017 11:01:48 +0100 Subject: [PATCH] Fix to drupal_goto to use url decode on destination --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index 0e4f484902f..e5306bd3cf8 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -324,7 +324,7 @@ function drupal_goto($path = '', $query = NULL, $fragment = NULL, $http_response if ($destination) { // Do not redirect to an absolute URL originating from user input. if (!menu_path_is_external($destination)) { - extract(parse_url($destination)); + extract(parse_url(urldecode($destination))); } }