Commit c22d146d7e100ce52fa7e196a96137ae67929c10

Authored by Michael Joseph
1 parent 4c563271

added urlencode for redirect on login failure


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2370 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 1 deletions
presentation/login.php
... ... @@ -77,7 +77,7 @@ if ($loginAction == "loginForm") {
77 77 } elseif ($loginAction == "login") {
78 78 // set default url for login failure
79 79 // with redirect appended if set
80   - $url = $url . "login.php?loginAction=loginForm" . (isset($redirect) ? "&redirect=$redirect" : "");
  80 + $url = $url . "login.php?loginAction=loginForm" . (isset($redirect) ? "&redirect=" . urlencode($redirect) : "");
81 81  
82 82 // if requirements are met and we have a username and password to authenticate
83 83 if( isset($fUserName) && isset($fPassword) ) {
... ...