summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Phillips2008-03-08 22:24:49 (GMT)
committer Chad Phillips2008-03-08 22:24:49 (GMT)
commited2cbe25b99d0c038f4594900da372121d0ea299 (patch)
treee417c54af150ab77402ec9b005c552198920473d
parent39440a80cc5804b2625168cff7c06aae9c22c6e2 (diff)
fix destination query in logintoboggan_process_login().
-rwxr-xr-xlogintoboggan.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/logintoboggan.module b/logintoboggan.module
index 5fc7dfe..b206c18 100755
--- a/logintoboggan.module
+++ b/logintoboggan.module
@@ -950,7 +950,7 @@ function logintoboggan_process_login($account, $redirect = ''){
watchdog('user', 'User %name used one-time login link at time %timestamp.', array('%name' => $user->name, '%timestamp' => time()));
drupal_set_message(t('You have just used your one-time login link. It is no longer necessary to use this link to login. Please change your password.'));
- $destination = $redirect ? 'destination='. urlencode($redirect) : NULL;
+ $destination = $redirect['path'] ? 'destination='. url($redirect['path'], array('query' => $redirect['query'], 'fragment' => $redirect['fragment'])) : NULL;
drupal_goto('user/'. $user->uid .'/edit', $destination);
}