diff options
author | kasimi <mail@kasimi.net> | 2019-01-26 22:29:54 +0100 |
---|---|---|
committer | kasimi <mail@kasimi.net> | 2019-01-26 22:29:54 +0100 |
commit | 75007697ae55632200eb7f2c6579026e23fe3d7d (patch) | |
tree | f396379f789bb8adc869154b5c75aa270aab4dbe /phpBB/includes/ucp/ucp_profile.php | |
parent | 713c996a0839664570ba24940e6a039ceee654ff (diff) | |
download | forums-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.php | 11 |
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'); |