1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Attempt to fix the php.net cross-domain issues once and for all.

(But this is a terrible hac...)

ONCE AND FOR ALL.
This commit is contained in:
Adam Harvey
2014-07-02 18:17:31 -07:00
parent 5335474af5
commit d89cf4ec47

View File

@@ -515,6 +515,10 @@ if($_SERVER["SERVER_PORT"] != '80' && $_SERVER["SERVER_PORT"] != 443) {
$msite = 'http://' . $_SERVER["SERVER_NAME"] . '/';
}
// This is a horrendous hack that should be removed at some point, but we need
// to avoid cross-domain issues where php.net is configured as www.php.net.
$MIRRORS['http://php.net/'] = $MIRRORS['http://www.php.net/'];
// If this site does not exist - it is most likely because
// CC.php.net isn't in this array anymore.
if (!isset($MIRRORS[$MYSITE])) {