mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
[ticket/15253] Move storage helper to filesystem
PHPBB3-15253
This commit is contained in:
@@ -49,7 +49,7 @@ class loader extends \Twig_Loader_Filesystem
|
||||
*/
|
||||
public function addSafeDirectory($directory)
|
||||
{
|
||||
$directory = \phpbb\storage\helper::realpath($directory);
|
||||
$directory = \phpbb\filesystem\helper::realpath($directory);
|
||||
|
||||
if ($directory !== false)
|
||||
{
|
||||
@@ -89,7 +89,7 @@ class loader extends \Twig_Loader_Filesystem
|
||||
*/
|
||||
public function addPath($path, $namespace = self::MAIN_NAMESPACE)
|
||||
{
|
||||
return parent::addPath(\phpbb\storage\helper::realpath($path), $namespace);
|
||||
return parent::addPath(\phpbb\filesystem\helper::realpath($path), $namespace);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -129,7 +129,7 @@ class loader extends \Twig_Loader_Filesystem
|
||||
// can now check if we're within a "safe" directory
|
||||
|
||||
// Find the real path of the directory the file is in
|
||||
$directory = \phpbb\storage\helper::realpath(dirname($file));
|
||||
$directory = \phpbb\filesystem\helper::realpath(dirname($file));
|
||||
|
||||
if ($directory === false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user