diff options
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index 3bc14d35cd0..d1913c28d7e 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -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(); } |