...
|
...
|
@@ -93,6 +93,18 @@ class Folder extends Base { |
|
|
if(empty($formData['folder'])){
|
|
|
app()->e('folder_create_name_error');
|
|
|
}
|
|
|
|
|
|
$formData['folder'] = str_replace(
|
|
|
["'",'"','/','\\','&','*','(',')','{','}','|','$','@','!','#','%','^','<','>','?','`','~','[',']'],
|
|
|
'',
|
|
|
$formData['folder']
|
|
|
);
|
|
|
|
|
|
// 是否是系统的
|
|
|
if(folderAlias($formData['folder']) !== $formData['folder']){
|
|
|
app()->e('folder_is_exist');
|
|
|
}
|
|
|
|
|
|
// 加密后的文件夹
|
|
|
$origin_folder = MailFun::folderEncoding($formData['folder']);
|
|
|
// 不为空上级
|
...
|
...
|
@@ -109,12 +121,6 @@ class Folder extends Base { |
|
|
$origin_folder = $parent['origin_folder'].'/'.$origin_folder;
|
|
|
}
|
|
|
|
|
|
$formData['folder'] = str_replace(
|
|
|
["'",'"','/','\\','&','*','(',')','{','}','|','$','@','!','#','%','^','<','>','?','`','~','[',']'],
|
|
|
'',
|
|
|
$formData['folder']
|
|
|
);
|
|
|
|
|
|
// 判断文件夹是否存在
|
|
|
$has = db()->count(folderSql::has(
|
|
|
[
|
...
|
...
|
|