Skip to content

Commit 0bdf6b8

Browse files
author
moglia
committed
Back to original content of 710 revision. Use phpmyadmin at the same host of ispconfig can be compromise server if have any bugs on phpmyadmin. Reported by till on forum.
1 parent 6509647 commit 0bdf6b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

interface/web/sites/database_phpmyadmin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
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' and $http == 'https')? $serverPort = ':'.$_SERVER["SERVER_PORT"] : $serverPort = '';
62-
header('location:'.$http.'://'.$serverData['server_name'].$serverPort.'/phpmyadmin');
61+
header('location:' . $http . '://' . $serverData['server_name'] . '/phpmyadmin');
6362
exit;
6463
?>

0 commit comments

Comments
 (0)