aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-06-05 11:56:22 +0200
committerMarc Alexander <admin@m-a-styles.de>2017-06-05 11:56:22 +0200
commit05a8baffdbb8bcca05ab927b11f687de99ac7ea9 (patch)
treeac6e38907ca36a7ad0e0f20a40685c9b853e4a6e /phpBB/posting.php
parent3f6119c42b5c0a3b35edaa35e2c7379b3ed089af (diff)
parent7a3e55bdb3725665b229f47ff6a5778a6f259969 (diff)
downloadforums-05a8baffdbb8bcca05ab927b11f687de99ac7ea9.tar
forums-05a8baffdbb8bcca05ab927b11f687de99ac7ea9.tar.gz
forums-05a8baffdbb8bcca05ab927b11f687de99ac7ea9.tar.bz2
forums-05a8baffdbb8bcca05ab927b11f687de99ac7ea9.tar.xz
forums-05a8baffdbb8bcca05ab927b11f687de99ac7ea9.zip
Merge pull request #4840 from rmcgirr83/ticket_15237
[ticket/15237] Fix unguarded includes to functions_user
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php5
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');