mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/15253] Use storage helper methods instead of filesystem methods
PHPBB3-15253
This commit is contained in:
@@ -18,15 +18,11 @@ namespace phpbb;
|
||||
*/
|
||||
class viewonline_helper
|
||||
{
|
||||
/** @var \phpbb\filesystem\filesystem_interface */
|
||||
protected $filesystem;
|
||||
|
||||
/**
|
||||
* @param \phpbb\filesystem\filesystem_interface $filesystem phpBB's filesystem service
|
||||
*
|
||||
*/
|
||||
public function __construct(\phpbb\filesystem\filesystem_interface $filesystem)
|
||||
public function __construct()
|
||||
{
|
||||
$this->filesystem = $filesystem;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -37,7 +33,7 @@ class viewonline_helper
|
||||
*/
|
||||
public function get_user_page($session_page)
|
||||
{
|
||||
$session_page = $this->filesystem->clean_path($session_page);
|
||||
$session_page = \phpbb\storage\helper::clean_path($session_page);
|
||||
if (strpos($session_page, './') === 0)
|
||||
{
|
||||
$session_page = substr($session_page, 2);
|
||||
|
Reference in New Issue
Block a user