Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that the path that will ultimately be passed to drupal_encode_… #49

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion raven.module
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down