Commit 8f91108e58c69982141ec5952cad37d0bb6548e2
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
Showing
1 changed file
with
3 additions
and
1 deletions
plugins/passwordResetPlugin/passwordResetPlugin.php
| @@ -54,10 +54,12 @@ class PasswordResetInterceptor extends KTInterceptor { | @@ -54,10 +54,12 @@ class PasswordResetInterceptor extends KTInterceptor { | ||
| 54 | $oRegistry =& KTPluginRegistry::getSingleton(); | 54 | $oRegistry =& KTPluginRegistry::getSingleton(); |
| 55 | $oPlugin =& $oRegistry->getPlugin('password.reset.plugin'); | 55 | $oPlugin =& $oRegistry->getPlugin('password.reset.plugin'); |
| 56 | $dispatcherURL = $oPlugin->getURLPath('loginResetDispatcher.php'); | 56 | $dispatcherURL = $oPlugin->getURLPath('loginResetDispatcher.php'); |
| 57 | + $queryString = $_SERVER['QUERY_STRING']; | ||
| 57 | $redirect = KTUtil::arrayGet($_REQUEST, 'redirect'); | 58 | $redirect = KTUtil::arrayGet($_REQUEST, 'redirect'); |
| 59 | + $redirect = urlencode($redirect); | ||
| 58 | 60 | ||
| 59 | $url = KTUtil::kt_url() . $dispatcherURL; | 61 | $url = KTUtil::kt_url() . $dispatcherURL; |
| 60 | - $url .= (!empty($redirect)) ? '?redirect='.$redirect : ''; | 62 | + $url .= (!empty($queryString)) ? '?'.$queryString : ''; |
| 61 | redirect($url); | 63 | redirect($url); |
| 62 | exit(0); | 64 | exit(0); |
| 63 | } | 65 | } |