Merge pull request #18163 from nextcloud/fix_file_size

fix filename size
This commit is contained in:
Roeland Jago Douma 2019-12-04 14:15:07 +01:00 committed by GitHub
commit 81b919ed9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -535,7 +535,9 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
}
}
if (isset($fileName[255])) {
// 255 characters is the limit on common file systems (ext/xfs)
// oc_filecache has a 250 char length limit for the filename
if (isset($fileName[250])) {
throw new FileNameTooLongException();
}