View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004368 | mantisbt | administration | public | 2004-08-21 14:22 | 2005-09-11 08:12 |
Reporter | hennot | Assigned To | ryandesign | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.19.0a2 | ||||
Fixed in Version | 1.0.0rc2 | ||||
Summary | 0004368: Login page doesn't redirect to followed link, if the first login attempt fails | ||||
Description | If the user fails to enter the correct login credentials on the first attempt, he or she will not get redirected to the clicked URL but instead to $g_default_home_page. | ||||
Tags | No tags attached. | ||||
Attached Files | mantis_1.0.0a2_bug_4368.patch (535 bytes)
Index: login.php =================================================================== --- login.php (revision 11) +++ login.php (working copy) @@ -43,7 +43,7 @@ if ( auth_attempt_login( $f_username, $f_password, $f_perm_login ) ) { $t_redirect_url = 'login_cookie_test.php?return=' . urlencode( $f_return ); } else { - $t_redirect_url = 'login_page.php?error=1'; + $t_redirect_url = 'login_page.php?return=' . urlencode( $f_return ) . '&error=1'; if ( HTTP_AUTH == config_get( 'login_method' ) ) { auth_http_prompt(); | ||||