[pmwiki-users] "Bug" when installing to a secure server?

Patrick R. Michaud pmichaud at pobox.com
Thu Dec 28 13:52:01 CST 2006


On Fri, Dec 22, 2006 at 02:36:53AM +0000, HaganFox wrote:
> Assuming so, I suspect
> 
> if (@$_SERVER['HTTPS'] == 'on'
>  || @$_SERVER['SERVER_PORT'] == '443') { # ... }
> 
> would work on both of those servers.   I think it would virtually never detect
> HTTPS in error, except if a server is using port 443 and not HTTPS.  I don't
> think that's likely to happen, and even if it does the wiki administrator can
> always set $ScriptUrl explicitly.

I agree, and this is the algorithm I've added to the core for
2.2.0-beta18.  

Many thanks.

Pm




More information about the pmwiki-users mailing list