From 07fef77c4c2f36ffadef6d427d73818606f4e098 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Thu, 17 May 2018 16:18:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=88=86=E4=BA=AB=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E8=BF=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/model/Directory.php | 3 + application/index/view/share/share_dir.html | 31 +- static/css/angular-filemanager.min.css | 2 +- static/css/share_dir.css | 1025 ++++++++++++++++++- static/js/filemanager_share.js | 6 +- static/js/share_dir.js | 3 +- 6 files changed, 1036 insertions(+), 34 deletions(-) diff --git a/application/index/model/Directory.php b/application/index/model/Directory.php index a1badc21..8c6e27dd 100644 --- a/application/index/model/Directory.php +++ b/application/index/model/Directory.php @@ -30,6 +30,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{ } function createFile($name, $data = NULL){ + $name = str_replace(" ","",$name); $userData = Db::name("users")->where("id",$this->uid)->find(); $groupData = Db::name("groups")->where("id",$userData["user_group"])->find(); $policyData = Db::name("policy")->where("id",$groupData["policy_name"])->find(); @@ -137,6 +138,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{ } function getChild($name) { + $name = str_replace(" ","",$name); if(!$this->childExists($name)){ throw new DAV\Exception\NotFound('File with name ' . $name . ' could not be located'); } @@ -150,6 +152,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{ } function childExists($name) { + $name = str_replace(" ","",$name); $fileObj = new Objects($this->uid.rtrim($this->myPath,"/") . '/' . $name); if($this->findDir(rtrim($this->myPath,"/") . '/' . $name) || $fileObj->isExist){ return true; diff --git a/application/index/view/share/share_dir.html b/application/index/view/share/share_dir.html index bfa97d0f..7dddde73 100644 --- a/application/index/view/share/share_dir.html +++ b/application/index/view/share/share_dir.html @@ -70,34 +70,9 @@ -