From bd9266880419f822356d90a91be604ed44cbaf7e Mon Sep 17 00:00:00 2001 From: hxsherry <1053288784@qq.com> Date: Fri, 19 Jan 2018 01:46:18 +0800 Subject: [PATCH] Fix the bad behavior on mobile. fix #3 --- rest/matter_controller.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rest/matter_controller.go b/rest/matter_controller.go index 30dd679..ea756aa 100644 --- a/rest/matter_controller.go +++ b/rest/matter_controller.go @@ -327,6 +327,11 @@ func (this *MatterController) Rename(writer http.ResponseWriter, request *http.R return this.Error(`名称中不能包含以下特殊符号:< > | * ? / \`) } + if len(name) > 200 { + panic("name长度不能超过200") + } + + //找出该文件或者文件夹 matter := this.matterDao.CheckByUuid(uuid)