Commit 8f91108e58c69982141ec5952cad37d0bb6548e2

Authored by Megan Watson
1 parent e388030f

Used the full query string in the redirect, prevents the doc id being cut off an…

…d passes the error message through.
PT: 984294

Committed by: Megan Watson
plugins/passwordResetPlugin/passwordResetPlugin.php
... ... @@ -54,10 +54,12 @@ class PasswordResetInterceptor extends KTInterceptor {
54 54 $oRegistry =& KTPluginRegistry::getSingleton();
55 55 $oPlugin =& $oRegistry->getPlugin('password.reset.plugin');
56 56 $dispatcherURL = $oPlugin->getURLPath('loginResetDispatcher.php');
  57 + $queryString = $_SERVER['QUERY_STRING'];
57 58 $redirect = KTUtil::arrayGet($_REQUEST, 'redirect');
  59 + $redirect = urlencode($redirect);
58 60  
59 61 $url = KTUtil::kt_url() . $dispatcherURL;
60   - $url .= (!empty($redirect)) ? '?redirect='.$redirect : '';
  62 + $url .= (!empty($queryString)) ? '?'.$queryString : '';
61 63 redirect($url);
62 64 exit(0);
63 65 }
... ...