aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
authorkasimi <mail@kasimi.net>2019-01-26 22:29:54 +0100
committerkasimi <mail@kasimi.net>2019-01-26 22:29:54 +0100
commit75007697ae55632200eb7f2c6579026e23fe3d7d (patch)
treef396379f789bb8adc869154b5c75aa270aab4dbe /phpBB/includes/ucp/ucp_profile.php
parent713c996a0839664570ba24940e6a039ceee654ff (diff)
downloadforums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar
forums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar.gz
forums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar.bz2
forums-75007697ae55632200eb7f2c6579026e23fe3d7d.tar.xz
forums-75007697ae55632200eb7f2c6579026e23fe3d7d.zip
[ticket/15954] Add safeguards to include() calls
PHPBB3-15954
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index a36bf619f8..9a1284083f 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -469,8 +469,15 @@ class ucp_profile
trigger_error('NO_AUTH_SIGNATURE');
}
- include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
- include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
+ if (!function_exists('generate_smilies'))
+ {
+ include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
+ }
+
+ if (!function_exists('display_custom_bbcodes'))
+ {
+ include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
+ }
$preview = $request->is_set_post('preview');