URI detection works with www-Sharp.Runtime (RFE #834053).

This commit is contained in:
Michal Čihař
2003-11-03 14:27:50 +00:00
parent 929dc1ef1c
commit 78a8356741
2 changed files with 11 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2003-11-03 Michal Cihar <nijel@users.sourceforge.net>
* lang/czech: Updated.
* libraries/common.lib.php3: URI detection works with www-Sharp.Runtime
(RFE #834053).
2003-11-03 Alexander M. Turek <rabus@users.sourceforge.net>
* lang/german-*.inc.php3: Grammar.

View File

@@ -665,9 +665,16 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
if (isset(${$SERVER_ARRAY}['PATH_INFO'])) {
$PATH_INFO = ${$SERVER_ARRAY}['PATH_INFO'];
}
if (isset(${$SERVER_ARRAY}['HTTP_SCHEME'])) {
$HTTP_SCHEME = ${$SERVER_ARRAY}['HTTP_SCHEME'];
}
if (!empty($HTTP_SCHEME)) {
$cfg['PmaAbsoluteUri'] = $HTTP_SCHEME . '://';
} else {
$cfg['PmaAbsoluteUri'] = ((!empty($HTTPS) && strtolower($HTTPS) != 'off') ? 'https' : 'http') . '://';
}
$port_in_HTTP_HOST = (strpos($HTTP_HOST, ':') > 0);
$cfg['PmaAbsoluteUri'] = ((!empty($HTTPS) && strtolower($HTTPS) != 'off') ? 'https' : 'http') . '://'
. $HTTP_HOST;
$cfg['PmaAbsoluteUri'] .= $HTTP_HOST;
// if $cfg['PmaAbsoluteUri'] is empty and port == 80 or port == 443, do not add ":80" or ":443"
// to the generated URL -> prevents a double password query in case of http authentication.