Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/vendor/laravel/cashier/src/Http/Middleware/VerifyRedirectUrl.php
Назад
<?php namespace Laravel\Cashier\Http\Middleware; use Closure; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; class VerifyRedirectUrl { /** * Handle the incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return \Illuminate\Http\Response * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException */ public function handle($request, Closure $next) { if (! $redirect = $request->get('redirect')) { return $next($request); } $url = parse_url($redirect); if (isset($url['host']) && $url['host'] !== $request->getHost()) { throw new AccessDeniedHttpException('Redirect host mismatch.'); } return $next($request); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка