From df4a023a7dba48dd76e2febeaf752e08943002e5 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Tue, 27 Apr 2021 16:55:07 +0800 Subject: [PATCH 1/2] * Fix bug #12426. --- module/execution/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/execution/model.php b/module/execution/model.php index c0e515b743..68f135c88c 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -73,6 +73,7 @@ class executionModel extends model { global $lang; $this->loadModel('execution'); + $this->app->loadLang('project'); $lang->executionCommon = $lang->project->stage; include $this->app->getModulePath('execution') . 'lang/' . $this->app->getClientLang() . '.php'; } From d3922df5a938e95bc99921ab3d233aa99aa6e242 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Tue, 27 Apr 2021 16:56:44 +0800 Subject: [PATCH 2/2] * Recovery file upload. --- config/config.php | 5 +++-- framework/helper.class.php | 24 ------------------------ module/caselib/control.php | 2 +- module/extension/control.php | 3 ++- module/file/model.php | 4 ++-- module/file/view/printfiles.html.php | 3 ++- module/testcase/control.php | 2 +- module/testtask/model.php | 2 +- 8 files changed, 12 insertions(+), 33 deletions(-) diff --git a/config/config.php b/config/config.php index a59d0e88eb..d9430f6863 100644 --- a/config/config.php +++ b/config/config.php @@ -138,8 +138,9 @@ $config->features->checkClient = true; /* 文件上传设置。 Upload settings. */ $config->file = new stdclass(); -$config->file->dangers = 'php,php3,php4,phtml,php5,jsp,py,rb,asp,aspx,ashx,asa,cer,cdx,aspl,shtm,shtml,html,htm'; -$config->file->allowed = 'txt,doc,docx,dot,wps,wri,pdf,ppt,pptx,xls,xlsx,ett,xlt,xlsm,csv,jpg,jpeg,png,psd,gif,ico,bmp,swf,avi,rmvb,rm,mp3,mp4,3gp,flv,mov,movie,rar,zip,bz,bz2,tar,gz,mpp,rp,pdm,vsdx,vsd,sql'; +$config->file->dangers = 'php,php3,php4,phtml,php5,jsp,py,rb,asp,aspx,ashx,asa,cer,cdx,aspl,shtm,shtml,html,htm'; +$config->file->allowed = 'txt,doc,docx,dot,wps,wri,pdf,ppt,pptx,xls,xlsx,ett,xlt,xlsm,csv,jpg,jpeg,png,psd,gif,ico,bmp,swf,avi,rmvb,rm,mp3,mp4,3gp,flv,mov,movie,rar,zip,bz,bz2,tar,gz,mpp,rp,pdm,vsdx,vsd,sql'; +$config->file->storageType = 'fs'; // fs or s3 /* Upload settings. */ $config->allowedTags = '