Skip to content

Commit

Permalink
Fix security vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Jun 24, 2021
1 parent 8db2d13 commit 49b992d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function checkUpdate(){

// 下载更新代码包
public function download(){
$this->checkLogin();
$this->checkAdmin();
set_time_limit(1000);
ini_set('memory_limit','500M');
$new_version = I("new_version") ;
Expand Down Expand Up @@ -78,6 +80,8 @@ public function download(){

// 执行升级操作,升级覆盖文件
public function updateFiles(){
$this->checkLogin();
$this->checkAdmin();
set_time_limit(1000);
ini_set('memory_limit','500M');

Expand Down

0 comments on commit 49b992d

Please sign in to comment.