|
@@ -478,7 +478,7 @@ if (!function_exists('check_ip_allowed')) {
|
|
|
$forbiddenipArr = !$forbiddenipArr ? [] : $forbiddenipArr;
|
|
|
$forbiddenipArr = is_array($forbiddenipArr) ? $forbiddenipArr : array_filter(explode("\n", str_replace("\r\n", "\n", $forbiddenipArr)));
|
|
|
if (/*$forbiddenipArr && */!\Symfony\Component\HttpFoundation\IpUtils::checkIp($ip, $forbiddenipArr)) {
|
|
|
- $response = Response::create('请求无权访问', 'html', 403);
|
|
|
+ $response = Response::create('请求('.$ip.')无权访问', 'html', 403);
|
|
|
throw new HttpResponseException($response);
|
|
|
}
|
|
|
}
|