Skip to content

Commit 38be018

Browse files
author
moglia
committed
Do not apply port if host is http only for https.
1 parent 5a7be23 commit 38be018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/database_phpmyadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* We only redirect to the login-form, so there is no need, to check any rights
5959
*/
6060
isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http';
61-
($_SERVER["SERVER_PORT"] != '80')? $serverPort = ':'.$_SERVER["SERVER_PORT"] : $serverPort = '';
61+
($_SERVER["SERVER_PORT"] != '80' and $http == 'https')? $serverPort = ':'.$_SERVER["SERVER_PORT"] : $serverPort = '';
6262
header('location:'.$http.'://'.$serverData['server_name'].$serverPort.'/phpmyadmin');
6363
exit;
6464
?>

0 commit comments

Comments
 (0)