summaryrefslogtreecommitdiff
path: root/app/Model/File.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-22 11:54:45 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-22 11:54:45 -0400
commit8e3618f4128e419e1522e48ccec27082d30e4de4 (patch)
treebbde5afa42f544010b07d81f92892c0b2fc2bb4c /app/Model/File.php
parentc9ba525bab06eff76b1d5fb8701848d0e3990122 (diff)
Increase length of attachments file names (and truncate if really too long)
Diffstat (limited to 'app/Model/File.php')
-rw-r--r--app/Model/File.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/File.php b/app/Model/File.php
index fe417d48..cb1e4792 100644
--- a/app/Model/File.php
+++ b/app/Model/File.php
@@ -92,7 +92,7 @@ class File extends Base
return $this->db->table(self::TABLE)->save(array(
'task_id' => $task_id,
- 'name' => $name,
+ 'name' => substr($name, 0, 255),
'path' => $path,
'is_image' => $is_image ? '1' : '0',
'size' => $size,