FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Automatic HTTP/HTTPS detection

Feed 0 posts, 1 voices

Avatar
0 posts

In order to secure my Frog, all the page links (especially News links) need to be able to automatically specify HTTP or HTTPS. Internal HTTP links play havoc with SSL.

My solution was to edit frog/app/classes/Page.php:

public function url() { return ($_SERVER["HTTPS"] != "on" ? URL_PUBLIC:URL_SECURE) . $this->url . ($this->url != '' ? URL_SUFFIX: ''); }

I hope this change is reflected in future versions.