aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 7d3977c507..286ccd8152 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -18,7 +18,7 @@ if (!defined('IN_PHPBB'))
if (!class_exists('bbcode'))
{
- include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
+ include(PHPBB_ROOT_PATH . 'includes/bbcode.' . PHP_EXT);
}
/**
@@ -970,7 +970,7 @@ class bbcode_firstpass extends bbcode
*/
function path_in_domain($url)
{
- global $config, $phpEx, $user;
+ global $config, $user;
if ($config['force_server_vars'])
{
@@ -982,7 +982,7 @@ class bbcode_firstpass extends bbcode
}
// Is the user trying to link to a php file in this domain and script path?
- if (strpos($url, ".{$phpEx}") !== false && strpos($url, $check_path) !== false)
+ if (strpos($url, '.' . PHP_EXT) !== false && strpos($url, $check_path) !== false)
{
$server_name = $user->host;
@@ -993,14 +993,14 @@ class bbcode_firstpass extends bbcode
}
// Check again in correct order...
- $pos_ext = strpos($url, ".{$phpEx}");
+ $pos_ext = strpos($url, '.' . PHP_EXT);
$pos_path = strpos($url, $check_path);
$pos_domain = strpos($url, $server_name);
if ($pos_domain !== false && $pos_path >= $pos_domain && $pos_ext >= $pos_path)
{
// Ok, actually we allow linking to some files (this may be able to be extended in some way later...)
- if (strpos($url, '/' . $check_path . '/download/file.' . $phpEx) !== 0)
+ if (strpos($url, '/' . $check_path . '/download/file.' . PHP_EXT) !== 0)
{
return false;
}
@@ -1300,7 +1300,7 @@ class parse_message extends bbcode_firstpass
*/
function parse_attachments($form_name, $mode, $forum_id, $submit, $preview, $refresh, $is_message = false)
{
- global $config, $auth, $user, $phpbb_root_path, $phpEx, $db;
+ global $config, $auth, $user, $db;
$error = array();
@@ -1390,7 +1390,7 @@ class parse_message extends bbcode_firstpass
// Perform actions on temporary attachments
if ($delete_file)
{
- include_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
+ include_once(PHPBB_ROOT_PATH . 'includes/functions_admin.' . PHP_EXT);
$index = array_keys(request_var('delete_file', array(0 => 0)));
$index = (!empty($index)) ? $index[0] : false;
@@ -1488,7 +1488,7 @@ class parse_message extends bbcode_firstpass
*/
function get_submitted_attachment_data($check_user_id = false)
{
- global $user, $db, $phpbb_root_path, $phpEx, $config;
+ global $user, $db, $config;
$this->filename_data['filecomment'] = utf8_normalize_nfc(request_var('filecomment', '', true));
$attachment_data = (isset($_POST['attachment_data'])) ? $_POST['attachment_data'] : array();