Issue #2 resolved

If Phpns is hosted on HTTPS, themes have issue

Anonymous created an issue

I think it has something to do with this line in /inc/themecontrol.php:

$file = str_replace('{prepath}','http://'.$_SERVER['SERVER_NAME'].$uri,$file); /****/fix problem.

I changed this to $file = str_replace('{prepath}','https://'.$_SERVER['SERVER_NAME'].$uri,$file); /****/fix problem.

and it works, but obviously this would break non-HTTPS installations. Is there a way to check what it's being accessed from?

Comments (4)

  1. Anonymous

    seems like there might be a few other places this is a problem; article images, for instance.

  2. Alec Henriksen

    This was partially fixed 5 months ago (in commit 51).

    $_SERVER['HTTPS'] can be used to detect if we are on an HTTP or HTTPS protocol. I will work on getting those other areas fixed as well.

    Thanks for the report.

  3. Log in to comment