[Pmwiki-users] Re: Edit via https only
Patrick R. Michaud
pmichaud
Tue Apr 13 13:31:08 CDT 2004
On Tue, Apr 13, 2004 at 09:24:13PM +0200, Albi Rebmann wrote:
> >is it possible to automaticly switch to https if I say edit page? So
> >password will be transfered more secure and nobody forget to switch to
> >https first.
>
> Has nobody any idea how to do this?
How about something like...
if ($action=='edit' || $action=='post') {
$ScriptUrl = 'https://your/secure/path/to/pmwiki.php';
$PubDirUrl = 'https://your/secure/path/to/pub';
if (!@$_SERVER['HTTPS']) Redirect($pagename,'\$PageUrl?action=edit');
}
I haven't tried this but it might work.
Pm
More information about the pmwiki-users
mailing list