? ? Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
9 Apr 2020

Pull Request for Issue #15436 .

Summary of Changes

Complete the TLS detection already done in parts of the CMS if a reverse proxy only provide the HTTP_X_FORWARDED_PROTO environment variable.

This PR copies the framework function into the CMS classes.

Testing Instructions

Install Joomla behind a proxy that only support HTTP_X_FORWARDED_PROTO === 'https' to test.
Also test all other variation for URL generation, simplest location should be the RSS feed.
All Links should have the same http/s protocol like the initial request.

You also can simulate this by setting
$_SERVER['HTTP_X_FORWARDED_PROTO'] = 'https'
in the index.php.

Do the same in a separated test for HTTPS = 'on'; and HTTPS = 'off';

avatar HLeithner HLeithner - open - 9 Apr 2020
avatar HLeithner HLeithner - change - 9 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Apr 2020
Category Libraries Unit Tests
avatar mbabker
mbabker - comment - 9 Apr 2020

You don’t have $this->input in the browser class, be careful with untested copy/paste.

avatar HLeithner
HLeithner - comment - 9 Apr 2020

Thanks I already noticed it in the tests, I'm fixing it at the moment.

avatar HLeithner HLeithner - change - 9 Apr 2020
Labels Added: ? ?
avatar HLeithner HLeithner - change - 9 Jan 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-01-09 11:39:33
Closed_By HLeithner
Labels Added: ? ?
Removed: ? ?
avatar HLeithner HLeithner - close - 9 Jan 2022

Add a Comment

Login with GitHub to post a comment