View Issue Details

IDProjectCategoryView StatusLast Update
0004368mantisbtadministrationpublic2005-09-11 08:12
Reporterhennot Assigned Toryandesign  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.0a2 
Fixed in Version1.0.0rc2 
Summary0004368: 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.

TagsNo 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();

Activities

ryandesign

ryandesign

2005-05-11 11:41

reporter   ~0010084

I believe the attached patch fixes this in Mantis 1.0.0a2.

ryandesign

ryandesign

2005-08-07 12:02

reporter   ~0011100

Applied the patch.

login.php -> 1.36