mirror of
https://github.com/nextcloud/server.git
synced 2026-05-15 01:49:53 -04:00
fix OC_Filesystem::isValidPath when using \ instead of / in paths
This commit is contained in:
parent
3139636906
commit
3cd416b667
1 changed files with 1 additions and 0 deletions
|
|
@ -396,6 +396,7 @@ class OC_Filesystem{
|
|||
* @return bool
|
||||
*/
|
||||
static public function isValidPath($path) {
|
||||
$path = self::normalizePath($path);
|
||||
if(!$path || $path[0]!=='/') {
|
||||
$path='/'.$path;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue