phpbb/phpBB/includes
EA117 636fc7fad7 [ticket/16066] Fix FORM_INVALID always returned for banned user.
After the introduction of add_form_key() and check_form_key() calls to
login_box() in phpBB 3.2.6 and later, if a banned user attempts to login,
they receive a "The submitted form was invalid. Try submitting again."
Instead of the message indicating that they are banned, and why.

This is happening because check_ban() actually calls into login_box()
recursively, but after the $user->session_id has been switched to a new
session ID for the logging-on user.  Therefore, now that check_form_key()
has been introduced to login_box(), it is impossible for check_form_key()
to succeed during this recursive call.

Fix is to make login_box()'s use of check_form_key() conditional on whether
IN_CHECK_BAN is defined, so that the recursive call does not attempt to
re-validate the form_key again.  Note the form_key has already been
successfully verified by the original call into login_box(), prior to calling
into check_ban() and attempting to recursively call login_box().  So the
protection of why check_form_key() was added is still intact with this change.

PHPBB3-16066
2019-07-28 12:25:54 -05:00
..
acp Merge pull request #5575 from rubencm/ticket/14459 2019-07-28 10:38:33 +02:00
diff [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
hooks [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
mcp [ticket/16106] Add core.mcp_main_before 2019-07-23 21:13:08 +02:00
questionnaire Merge pull request #42 from phpbb/ticket/security/227 2018-11-10 17:04:00 +01:00
ucp Merge pull request #5630 from 3D-I/ticket/16103 2019-07-27 14:37:58 +02:00
utf [ticket/14972] replace all occurrences of sizeof() with the count() 2018-01-01 13:56:04 +01:00
.htaccess [ticket/9698] Add .htaccess to the includes subdirectory. 2010-10-15 16:47:21 +02:00
bbcode.php [ticket/15875] Fix PHP fatal error on BBCode parsing 2018-11-18 01:33:56 +07:00
compatibility_globals.php [ticket/15942] Add language to compatibility globals & use in confirm_box 2019-04-17 08:22:44 +02:00
constants.php [3.2.x] Update version numbers to 3.2.8-dev 2019-05-03 23:12:54 +02:00
functions.php [ticket/16066] Fix FORM_INVALID always returned for banned user. 2019-07-28 12:25:54 -05:00
functions_acp.php [ticket/security/234] Add URL validation for input fields 2019-04-14 14:07:22 +02:00
functions_admin.php [ticket/15960] Add SQL transactions to functions_admin.php 2019-02-01 23:24:41 +01:00
functions_compatibility.php [ticket/15910] Pass object arguments by reference implicitly 2018-12-12 12:41:56 +01:00
functions_compress.php [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
functions_content.php [ticket/15893] Pass needed language class directly to format quote 2018-12-02 19:50:09 +01:00
functions_convert.php Merge remote-tracking branch 'upstream/3.2.x' into prep-release-3.2.2 2018-01-07 11:02:31 +01:00
functions_database_helper.php [ticket/12594] Remove @package tags and update file headers 2014-05-27 20:51:13 +02:00
functions_display.php [ticket/15872] Add show_user_activity to display_user_activity_modify_actives 2018-11-12 01:54:11 -05:00
functions_download.php [ticket/15984] Use private cache-control 2019-05-27 15:31:35 +02:00
functions_jabber.php [ticket/14972] replace all occurrences of sizeof() with the count() 2018-01-01 13:56:04 +01:00
functions_mcp.php [ticket/15910] Pass object arguments by reference implicitly 2018-12-12 12:41:56 +01:00
functions_messenger.php Merge pull request #5562 from senky/ticket/15961 2019-07-21 21:12:00 +02:00
functions_module.php [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
functions_posting.php Merge pull request #5602 from senky/ticket/16003 2019-06-17 10:14:35 +02:00
functions_privmsgs.php Merge pull request #5572 from dark-1/ticket/16023 2019-07-22 20:55:00 +02:00
functions_transfer.php [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
functions_user.php [ticket/16013] Allow admins to use disallowed username 2019-05-24 15:17:18 +02:00
index.htm
message_parser.php Merge pull request #5469 from senky/ticket/15899 2019-01-20 15:38:13 +01:00
sphinxapi.php [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
startup.php [ticket/15227] Remove function deregister_globals, not needed 2017-05-21 16:57:01 +02:00