com web/php: https://www.php.net is the canonical web site address now: git-php.php include/site.inc

From: Date: Mon, 25 Mar 2019 14:40:16 +0000
Subject: com web/php: https://www.php.net is the canonical web site address now: git-php.php include/site.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-27908@lists.php.net to get a copy of this message
Commit: b02257864cab75e9bd2661037dd2f55909542831 Author: Derick Rethans <github@derickrethans.nl> Mon, 25 Mar 2019 14:40:13 +0000 Parents: f00d6c0d3554aca4f4cb661b17e5af977a8c7b97 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=b02257864cab75e9bd2661037dd2f55909542831 Log: https://www.php.net is the canonical web site address now This change is needed so that https://www.php.net/git-php.php does not end up in a redirect loop. Changed paths: M git-php.php M include/site.inc Diff: diff --git a/git-php.php b/git-php.php index d60d120..828e79a 100644 --- a/git-php.php +++ b/git-php.php @@ -6,7 +6,7 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc'; // Force the account requests to php.net if (!is_primary_site()) { - header('Location: http://php.net/'.$_SERVER['BASE_PAGE']); + header('Location: https://www.php.net/'.$_SERVER['BASE_PAGE']); exit; } diff --git a/include/site.inc b/include/site.inc index 09e0fd2..d9e1eb8 100644 --- a/include/site.inc +++ b/include/site.inc @@ -22,7 +22,7 @@ function is_primary_site($site = FALSE) { global $MYSITE; if (!$site) { $site = $MYSITE; } - return ($site == "http://www.php.net/" || $site == "http://php.net/" ); + return ($site == "https://www.php.net/" || $site == "https://php.net/" ); } // Returns true if the current (or specified)

« previous php.webmaster (#27908) next »