Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
38be018b
Commit
38be018b
authored
Aug 10, 2009
by
moglia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not apply port if host is http only for https.
parent
5a7be237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
interface/web/sites/database_phpmyadmin.php
interface/web/sites/database_phpmyadmin.php
+1
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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