aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-04 14:15:07 +0100
committerGitHub <noreply@github.com>2019-12-04 14:15:07 +0100
commit81b919ed9f497c975d1b8158abdcdabb0712f39e (patch)
treef9cfdfca96b4b7677103869eaf5736d9aaed267a /lib
parent293585ec12b5fcfd028d5e9835cfc144b98dcaf3 (diff)
parent1110a93fc4ddb14b98431421731ed60d589a9e85 (diff)
downloadnextcloud-server-81b919ed9f497c975d1b8158abdcdabb0712f39e.tar.gz
nextcloud-server-81b919ed9f497c975d1b8158abdcdabb0712f39e.zip
Merge pull request #18163 from nextcloud/fix_file_size
fix filename size
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/Common.php4
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();
}