From 46adf29d8b79df4dc645bdca3a05b1a0a1f08539 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sat, 22 Apr 2006 20:28:42 +0000 Subject: [PATCH] Fix missing error message for inactive users [#1598] (This is only actually a one line change, but the resulting indent change makes for a large block in the code changes unfortunately) git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5835 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/login.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/phpBB/login.php b/phpBB/login.php index f135fbbc5f..15d0d449d2 100644 --- a/phpBB/login.php +++ b/phpBB/login.php @@ -118,23 +118,23 @@ if( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset($ WHERE user_id = ' . $row['user_id']; $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' => "") - ); - - $message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], "", '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); } + + $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' => "") + ); + + $message = $lang['Error_login'] . '

' . sprintf($lang['Click_return_login'], "", '') . '

' . sprintf($lang['Click_return_index'], '', ''); + + message_die(GENERAL_MESSAGE, $message); } } else