Pārlūkot izejas kodu

:bug: 没有判断 $_POST["import"] 是否存在

visuddhinanda 5 gadi atpakaļ
vecāks
revīzija
2eeeaa3662
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/article/my_article_post.php

+ 1 - 1
app/article/my_article_post.php

@@ -26,7 +26,7 @@ if($power<20){
 $_content = $_POST["content"];
 $_content = $_POST["content"];
 
 
 
 
-if($_POST["import"]=='on'){
+if(isset($_POST["import"]) && $_POST["import"]=='on'){
 	#导入自定义书
 	#导入自定义书
 	$custom_book = new CustomBook($redis);
 	$custom_book = new CustomBook($redis);
 	$_lang = explode("_",$_POST["lang"]);
 	$_lang = explode("_",$_POST["lang"]);