com web/php: Fixed bug #66336 Endless redirect loop on /git-php.php: include/site.inc
| From: | Paul Dragoonis | Date: | Sun, 22 Dec 2013 19:35:13 +0000 |
| Subject: | com web/php: Fixed bug #66336 Endless redirect loop on /git-php.php: include/site.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-22291@lists.php.net to get a copy of this message | ||
Commit: f6a5610e3ae7c9ab49f0538be7b6896ece347274
Author: Hannes Magnusson <bjori@mongodb.com> Sun, 22 Dec 2013 11:34:30 -0800
Parents: cc8bd2943bc181e5d3b9a438e5944c72428f22b6
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f6a5610e3ae7c9ab49f0538be7b6896ece347274
Log:
Fixed bug #66336 Endless redirect loop on /git-php.php
Bugs:
https://bugs.php.net/66336
Changed paths:
M include/site.inc
Diff:
diff --git a/include/site.inc b/include/site.inc
index 11421eb..b7a0bb4 100644
--- a/include/site.inc
+++ b/include/site.inc
@@ -500,7 +500,7 @@ if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] !=
"on") {
$proto = "https";
}
-if($_SERVER["SERVER_PORT"] != '80' || $_SERVER["SERVER_PORT"] != 443)
{
+if($_SERVER["SERVER_PORT"] != '80' && $_SERVER["SERVER_PORT"]
!= 443) {
$MYSITE = $proto . '://' . $_SERVER["SERVER_NAME"] . ':' .
(int)$_SERVER["SERVER_PORT"] . '/';
$msite = 'http://' .
$_SERVER["SERVER_NAME"] . ':' . (int)$_SERVER["SERVER_PORT"] .
'/';
} else {