00410: Set links to http or https based on how current page accesed (Closed - added for 2.2.0-beta18)
In pmwiki.php any chance in future releases you might change
$ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
to something like
if($_SERVER['HTTPS']=='on') $SSLpostfix='s'; else $SSLpostfix='' ;
$ScriptUrl = 'http'.$SSLpostfix.'://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
That way, if somebody enters the wiki with a secure connection, it will keep the internal wiki links secure also.
I don't think that the protocol, host name (and port number!) should be in
$ScriptUrl at all. We run a number of wikis which are accessible by http: internally and https: externally, using a local/farmconfig.php (2.0.beta36)
$ScriptUrl = $_SERVER['SCRIPT_NAME'];
without any other changes. Dropping the superfluous host reference leaves the work to the browser - where it belongs.
No host in
$PubDirUrl either. tpahl