mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/17201] Add comment on need to add dot to script_name
PHPBB3-17201
This commit is contained in:
@@ -1829,6 +1829,7 @@ function phpbb_get_install_redirect(string $phpbb_root_path, string $phpEx): str
|
|||||||
$script_name = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
|
$script_name = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add trailing dot to prevent dirname() from returning parent directory if $script_name is a directory
|
||||||
$script_name = substr($script_name, -1) === '/' ? $script_name . '.' : $script_name;
|
$script_name = substr($script_name, -1) === '/' ? $script_name . '.' : $script_name;
|
||||||
|
|
||||||
// $phpbb_root_path accounts for redirects from e.g. /adm
|
// $phpbb_root_path accounts for redirects from e.g. /adm
|
||||||
|
Reference in New Issue
Block a user