[pmwiki-users] Enableing pmWiki for SSL
H. Fox
haganfox at users.sourceforge.net
Mon Apr 30 18:32:47 CDT 2007
On 4/30/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Mon, Apr 30, 2007 at 09:02:06AM +0200, Dominique Faure wrote:
> > On 4/30/07, H. Fox <haganfox at users.sourceforge.net> wrote:
> > >
> > >I switched the contitional to this:
> > >
> > > if (!$_SERVER["HTTPS"] == 'on' || @$_SERVER['SERVER_PORT'] != '443') {
> >
> > You hurt my boolean algebra here: not(a or b) = not(a) AND not(b)
> > so I would merely write:
> >
> > if (!$_SERVER["HTTPS"] == 'on' && @$_SERVER['SERVER_PORT'] != '443') {
>
> Or even:
>
> if (@$_SERVER['HTTPS'] != 'on' && @$_SERVER['SERVER_PORT'] != '443') {
You are correct, I was trying to get the opposite of
if (@$_SERVER["HTTPS"] == 'on' || @$_SERVER['SERVER_PORT'] == '443') {
Either of the above would properly detect SSL for the unusual cases where
- HTTPS is not "on" but the port is 443 and
- HTTPS is "on" and the port is not 443.
Hagan
More information about the pmwiki-users
mailing list