[Pmwiki-users] Easily Hackable?
H. Fox
haganfox
Mon Apr 12 01:16:19 CDT 2004
H. Fox wrote:
> Not necessarily. If PmWiki doesn't have a "force into SSL mode" feature
> now, I'm sure it could be added in the future. ;)
I'm having success forcing PmWiki into SSL mode using the following:
## Force into SSL mode.
$ScriptUrl = ereg_replace('http:','https:', $ScriptUrl);
$PubDirUrl = ereg_replace('http:','https:', $PubDirUrl);
if ($_SERVER['SERVER_PORT'] != 443) header('location:'.$ScriptUrl);
I posted notes about it at
http://www.pmichaud.com/wiki/Development/EnableSSLPages
Hagan
More information about the pmwiki-users
mailing list