[pmwiki-users] Protocol (https/http) included in $ScriptUrl
Nils Knappmeier
nk at knappi.org
Thu Sep 7 15:10:46 CDT 2006
Hi,
this is not urgent, since I solved it by setting $ScriptUrl manually,
but anyway.
It would be nice, if the protocol part of the URL (https or http) would
be used as protocol part, of $ScriptUrl.
At the moment, $ScriptUrl is composed as
$ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
Is it possible, in future releases, to change this to
if ($_SERVER['HTTPS'] == 'on') {
$ScriptUrl = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
} else {
$ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
}
or something similar?
Nils
More information about the pmwiki-users
mailing list