From c2ba4dcf5dbe5500ce220f561f37657ec3152e64 Mon Sep 17 00:00:00 2001 From: Adam Thorn Date: Fri, 11 Aug 2017 17:06:14 +0100 Subject: [PATCH] Ensure that the path that will ultimately be passed to drupal_encode_path() is not URI-encoded. --- raven.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/raven.module b/raven.module index b495a6d..f54a1a9 100644 --- a/raven.module +++ b/raven.module @@ -154,7 +154,8 @@ function raven_login($redirect = NULL) { $params['ver'] = '3'; $params['url'] = $base_url . '/'; $params['desc'] = !empty($website_description) ? $website_description : variable_get('site_name', $base_url); - $params['params'] = url($redirect, array('absolute' => TRUE, 'language' => (object) array('language' => FALSE))); + // The options passed to drupal_goto() must not be URI-encoded because they ultimately get passed to drupal_encode_path() + $params['params'] = rawurldecode(url($redirect, array('absolute' => TRUE, 'language' => (object) array('language' => FALSE)))); // Remove any messages (such as 'You need to log in') to stop them appearing on the next page. drupal_get_messages();