On Mon, Apr 30, 2007 at 09:02:06AM +0200, Dominique Faure wrote:
> On 4/30/07, H. Fox <[EMAIL PROTECTED]> 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') {

And, for versions of PmWiki after 2.2.0-beta18, one can do the
equivalent with:

    if ($UrlScheme != 'https') {

Pm

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to