Skip to content

Commit 70a4a7f

Browse files
committed
Fixed bug #66336 Endless redirect loop on /git-php.php
1 parent a38398f commit 70a4a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/site.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on") {
500500
$proto = "https";
501501
}
502502

503-
if($_SERVER["SERVER_PORT"] != '80' || $_SERVER["SERVER_PORT"] != 443) {
503+
if($_SERVER["SERVER_PORT"] != '80' && $_SERVER["SERVER_PORT"] != 443) {
504504
$MYSITE = $proto . '://' . $_SERVER["SERVER_NAME"] . ':' . (int)$_SERVER["SERVER_PORT"] . '/';
505505
$msite = 'http://' . $_SERVER["SERVER_NAME"] . ':' . (int)$_SERVER["SERVER_PORT"] . '/';
506506
} else {

0 commit comments

Comments
 (0)