https bug and the fix
-
Using rsvp 1.6.5 which I think is the latest on IIS on my localhost machine and ran into a bug where https was called instead of http which of course failed to work on my local test server. I tracked this bug down to be in the following routine:
function rsvp_getHttpProtocol() { // if(isset($_SERVER['HTTPS']) && (trim($_SERVER['HTTPS']) != "")) { // kew - fix to handle "off" setting that IIS returns on my localhost if(isset($_SERVER['HTTPS']) && (trim($_SERVER['HTTPS']) != "") && (strtolower(trim($_SERVER['HTTPS'])) != "off")) { return "https"; } return "http"; }
The fix is shown above. This is caused by IIS returning “off” in the SERVER[‘HTTPS’] string instead of null.
Hope this helps someone.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘https bug and the fix’ is closed to new replies.