From 254ffe7b48e3111dbdf6899986eeb997caa45185 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Fri, 24 Mar 2017 13:26:13 -0400 Subject: [PATCH] Don't enforce 100-character limit on folder names --- lib/Database.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/Database.php b/lib/Database.php index 301d50a..64674b4 100644 --- a/lib/Database.php +++ b/lib/Database.php @@ -344,8 +344,6 @@ class Database { throw new Db\ExceptionInput("missing", ["action" => __FUNCTION__, "field" => "name"]); } else if(!strlen(trim($data['name']))) { throw new Db\ExceptionInput("whitespace", ["action" => __FUNCTION__, "field" => "name"]); - } else if(iconv_strlen($data['name']) > 100) { - throw new Db\ExceptionInput("tooLong", ["action" => __FUNCTION__, "field" => "name", 'max' => 100]); } // normalize folder's parent, if there is one $parent = array_key_exists("parent", $data) ? (int) $data['parent'] : 0;