修复一个高危BUG,修复了数据库不关闭的BUG

This commit is contained in:
Bigsk 2020-09-30 21:35:03 +08:00
parent b93ff12f13
commit 77a325b1c8

View File

@ -104,7 +104,7 @@ function check_file_update($file,$url,$time){
} }
}else{ }else{
ob_start(); ob_start();
system('python download.py --url "'.$url.'" --file "'.$file.'" --type "pass" --type_sub "pass"'); system(str_replace(";","",'python download.py --url "'.$url.'" --file "'.$file.'" --type "pass" --type_sub "pass"'));
ob_clean(); ob_clean();
echo file_get_contents('file/'.$file); echo file_get_contents('file/'.$file);
} }
@ -193,3 +193,4 @@ if($_GET['error']!=""){
} }
} }
} }
mysqli_close($link);