diff options
author | RMcGirr83 <rmcgirr83@gmail.com> | 2017-05-24 12:58:25 -0400 |
---|---|---|
committer | RMcGirr83 <rmcgirr83@gmail.com> | 2017-05-24 12:58:25 -0400 |
commit | 7a3e55bdb3725665b229f47ff6a5778a6f259969 (patch) | |
tree | aebba203d75a0214ea2287a64ee55fbd5e81022c /phpBB/posting.php | |
parent | Merge pull request #4838 from marc1706/ticket/15020 (diff) | |
download | phpbb-7a3e55bdb3725665b229f47ff6a5778a6f259969.tar.gz phpbb-7a3e55bdb3725665b229f47ff6a5778a6f259969.tar.bz2 phpbb-7a3e55bdb3725665b229f47ff6a5778a6f259969.zip |
[ticket/15237] Fix unguarded includes to functions_user
https://tracker.phpbb.com/browse/PHPBB3-15237
PHPBB3-15237
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 4651a1fd2c..3ab78b5db5 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1066,7 +1066,10 @@ if ($submit || $preview || $refresh) // Validate username if (($post_data['username'] && !$user->data['is_registered']) || ($mode == 'edit' && $post_data['poster_id'] == ANONYMOUS && $post_data['username'] && $post_data['post_username'] && $post_data['post_username'] != $post_data['username'])) { - include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + if (!function_exists('validate_username')) + { + include($phpbb_root_path . 'includes/functions_user.' . $phpEx); + } $user->add_lang('ucp'); |