]> git.mxchange.org Git - friendica.git/commitdiff
Changed:
authorRoland Häder <roland@mxchange.org>
Wed, 14 Sep 2022 22:39:39 +0000 (00:39 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Jun 2025 20:53:14 +0000 (22:53 +0200)
- I was to lazy at that time to name my variable/parameter correctly!

src/Core/System.php

index 19a6b42fa3b5461464ed4306903ba1ec171b10f4..5edc6185baeba5164c4a20c93e52edaa58cb57a6 100644 (file)
@@ -506,7 +506,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
@@ -516,14 +516,14 @@ class System
         *
         * @return never
         */
-       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))) {
                        DI::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');