[pmwiki-users] "Bug" when installing to a secure server?
christian.ridderstrom at gmail.com
christian.ridderstrom at gmail.com
Sat Dec 23 15:34:39 CST 2006
On Fri, 22 Dec 2006, HaganFox wrote:
>> On my secure installation the result was 'on', and on a public I just got
>> what I think is an empty string, i.e. ''.
>
> That's good feedback. Just to be sure I understand, the public server
> is also HTTPS, correct?
No, I was being imprecise. The "public" server was 'http:'. sorry
/C
> 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.
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list