Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
38be018b
Commit
38be018b
authored
Aug 10, 2009
by
moglia
Browse files
Do not apply port if host is http only for https.
parent
5a7be237
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/database_phpmyadmin.php
View file @
38be018b
...
...
@@ -58,7 +58,7 @@ $serverData = $app->db->queryOneRecord(
* We only redirect to the login-form, so there is no need, to check any rights
*/
isset
(
$_SERVER
[
'HTTPS'
])
?
$http
=
'https'
:
$http
=
'http'
;
(
$_SERVER
[
"SERVER_PORT"
]
!=
'80'
)
?
$serverPort
=
':'
.
$_SERVER
[
"SERVER_PORT"
]
:
$serverPort
=
''
;
(
$_SERVER
[
"SERVER_PORT"
]
!=
'80'
and
$http
==
'https'
)
?
$serverPort
=
':'
.
$_SERVER
[
"SERVER_PORT"
]
:
$serverPort
=
''
;
header
(
'location:'
.
$http
.
'://'
.
$serverData
[
'server_name'
]
.
$serverPort
.
'/phpmyadmin'
);
exit
;
?>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment