 |
phpBB2MODs.com ... Under New Management ...
|
| View previous topic :: View next topic |
| Author |
Message |
Dicky
Joined: 25 Apr 2006 Posts: 7
|
Posted: Wed Apr 26, 2006 8:33 am Post subject: Site login problem |
|
|
I get a blank page when logging in.
Well, stupid me, I forgot that I needed to activate my account. Once activated, I was then able to log in. The error page does come up when entering an incorrect password. It just doesn't come up for an inactive member. |
|
| Back to top |
|
 |
Site Admin Site Admin
Joined: 24 Apr 2006 Posts: 34
|
Posted: Wed Apr 26, 2006 3:15 pm Post subject: |
|
|
| Thanks, I will take a look. |
|
| Back to top |
|
 |
Dave Rathbun MOD Author
Joined: 26 Apr 2006 Posts: 25 Location: everywhere, nowhere, somewhere
|
Posted: Tue May 16, 2006 4:18 pm Post subject: |
|
|
I have verified that this occurs on a vanilla board. I'm wondering if it's a bug in 2.0.20. Further testing will be done, and a bug logged / a fix created if so. _________________ <sigh> |
|
| Back to top |
|
 |
espicom
Joined: 25 Apr 2006 Posts: 5
|
|
| Back to top |
|
 |
Dave Rathbun MOD Author
Joined: 26 Apr 2006 Posts: 25 Location: everywhere, nowhere, somewhere
|
Posted: Tue May 16, 2006 11:24 pm Post subject: |
|
|
Thanks.
Fix applied. _________________ <sigh> |
|
| Back to top |
|
 |
Dicky
Joined: 25 Apr 2006 Posts: 7
|
Posted: Wed May 24, 2006 11:29 pm Post subject: |
|
|
The fix that is in that post is not what is in the cvs. I feel that the one in the cvs is a better fix. All the fix does is move a brace. | Code: | #
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#
$db->sql_query($sql);
}
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
$redirect = str_replace('?', '&', $redirect);
if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
{
message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
}
$template->assign_vars(array(
'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">")
);
$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
$db->sql_query($sql);
}
}
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
$redirect = str_replace('?', '&', $redirect);
if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
{
message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
}
$template->assign_vars(array(
'META' => "<meta http-equiv=\"refresh\" content=\"3;url=login.$phpEx?redirect=$redirect\">")
);
$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM |
|
|
| Back to top |
|
 |
|
|