Merge branch 'master' of github.com:freescout-helpdesk/freescout into dist
This commit is contained in:
@@ -1015,9 +1015,20 @@ class Helper
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* symfony/filesystem package is not installed,
|
||||
* so the logic of Symfony\Component\Filesystem\Filesystem::isAbsolutePath() is used here.
|
||||
*/
|
||||
public static function isAbasolutePath($path)
|
||||
{
|
||||
return (new \Symfony\Component\Filesystem\Filesystem())->isAbsolutePath($path);
|
||||
$path = (string)$path;
|
||||
|
||||
return strspn($path, '/\\', 0, 1)
|
||||
|| (strlen($path) > 3 && ctype_alpha($path[0])
|
||||
&& ':' === $path[1]
|
||||
&& strspn($path, '/\\', 2, 1)
|
||||
)
|
||||
|| null !== parse_url($path, PHP_URL_SCHEME);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3361,4 +3372,4 @@ class Helper
|
||||
return config('filesystems.default') == 'local';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ return [
|
||||
| or any other location as required by the application or its packages.
|
||||
*/
|
||||
|
||||
'version' => '1.8.244',
|
||||
'version' => '1.8.245',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user