The current SSL detection isn't working on IIS, while IIS have $_SERVER['HTTPS'] = "off" set if traffic is non-SSL. This small change fixes the bug:

    // Are we on a secure page?
    if($_SERVER['HTTPS'] == "on") {
      $prefix = 's://ssl';
    }

Comments

hass’s picture

Status: Active » Needs review
budda’s picture

Status: Needs review » Fixed

Committed recommended SSL detection routine to CVS. Let me know how this goes for IIS, and Apache, i've not got a 5.x HTTPS site to test on.

Anonymous’s picture

Status: Fixed » Closed (fixed)