Skip to content

Commit

Permalink
Update reinfo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Sep 5, 2023
1 parent ef92038 commit 8c5a3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/web/reinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function is_valid($str2){
$view_reinfo=htmlentities(str_replace("\n\r","\n",$row['error']),ENT_QUOTES,"UTF-8");
}

if(strpos($row['error'],"judge/")!==false) $view_reinfo = "潜在的数组或指针越界,请检查代码。";
if(strpos($row['error'],"judge/")!==false&&!isset($_SESSION[$OJ_NAME."_administrator"])) $view_reinfo = "潜在的数组或指针越界,请检查代码。";
else if(strpos($row['error'],"php")!==false) $view_reinfo = "error2";
else if(strpos($row['error'],"PASS")!==false) $view_reinfo = "error3";
else if($OJ_SHOW_DIFF && $row && ($ok||$isRE) && ($OJ_TEST_RUN||is_valid($row['error'])||$ok)){
Expand Down

0 comments on commit 8c5a3e7

Please sign in to comment.