From 2a138015216731e8e1cad005e9bc482aafde7c46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 15 Sep 2022 00:39:39 +0200 Subject: [PATCH] Changed: - I was to lazy at that time to name my variable/parameter correctly! --- src/Core/System.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/System.php b/src/Core/System.php index 8c39aecdb6..5f90e88bfe 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -514,7 +514,7 @@ class System * * @param string $url The new Location to redirect * @param int $code The redirection code, which is used (Default is 302) - * @param bool $proxy_headers Whether proxy-related headers are being sent + * @param bool $includeProxyHeaders Whether proxy-related headers are being sent * * @return void * @throws FoundException @@ -522,14 +522,14 @@ class System * @throws TemporaryRedirectException * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ - public static function externalRedirect(string $url, int $code = 302, bool $proxy_headers = false) + public static function externalRedirect(string $url, int $code = 302, bool $includeProxyHeaders = false) { if (empty(parse_url($url, PHP_URL_SCHEME))) { Logger::warning('No fully qualified URL provided', ['url' => $url]); DI::baseUrl()->redirect($url); } - if ($proxy_headers) { + if ($includeProxyHeaders) { // Send Pragma/Cache-Control headers header('Pragma: no-cache'); header('Cache-Control: no-cache, must-revalidate'); -- 2.39.5