- Support HTTP_X_FORWARDED_PROTO header for HTTPS detecting (#1486866)

release-0.6
alecpl 15 years ago
parent d5d9680486
commit 3a4c9f424b

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
- Support HTTP_X_FORWARDED_PROTO header for HTTPS detecting (#1486866)
- Fix default IMAP port configuration (#1486864)
- Create Sent folder when starting to compose a new message (#1486802)
- Fix handling of messages with Content-Type: application/* and no filename (#1484050)

@ -1528,6 +1528,8 @@ function rcube_https_check($port=null, $use_https=true)
if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off')
return true;
if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https')
return true;
if ($port && $_SERVER['SERVER_PORT'] == $port)
return true;
if ($use_https && isset($RCMAIL) && $RCMAIL->config->get('use_https'))

Loading…
Cancel
Save