mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10848] Add phpbb_ prefix.
PHPBB3-10848
This commit is contained in:
@@ -45,7 +45,7 @@ if (!defined('PHPBB_INSTALLED'))
|
||||
$script_path = preg_replace('#[\\\\/]{2,}#', '/', $script_path);
|
||||
// Eliminate . and .. from the path
|
||||
require($phpbb_root_path . 'includes/functions.' . $phpEx);
|
||||
$script_path = clean_path($script_path);
|
||||
$script_path = phpbb_clean_path($script_path);
|
||||
|
||||
$url = (($secure) ? 'https://' : 'http://') . $server_name;
|
||||
|
||||
|
@@ -1182,7 +1182,7 @@ else
|
||||
* @param string $path Path to clean
|
||||
* @return string Cleaned path
|
||||
*/
|
||||
function clean_path($path)
|
||||
function phpbb_clean_path($path)
|
||||
{
|
||||
$exploded = explode('/', $path);
|
||||
$filtered = array();
|
||||
|
Reference in New Issue
Block a user