mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
N°3606: add IP inside iTop error message
This commit is contained in:
@@ -251,9 +251,8 @@ abstract class Controller
|
||||
$clientIp = $_SERVER['REMOTE_ADDR'];
|
||||
if (!IpUtils::checkIp($clientIp, $aAllowedNetworkRegexpPatterns)){
|
||||
IssueLog::Error("'$sExecModule' page is not authorized to '$clientIp' ip address.");
|
||||
throw new Exception("Unauthorized network");
|
||||
throw new Exception("Unauthorized network ($clientIp)");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user