? Failure
Pull Request for # 5561

User tests: Successful: Unsuccessful:

avatar xtech86
xtech86
30 Dec 2014

Simple SSL improvements to detect if they are using the HTTP_X_FORWARDED_PRONTO and is set to https. Used by CloudFlare and many web hosts under clustered hosting environments.

Steps to reproduce the issue

Simple way to reproduce is to enable cloudflare flexissl without the website having it's own SSL certificate. You are then prompted with many SSL/non-ssl errors. Because we are asking the server for SSL Validation which is cannot provide.

Also this is an issue for hosts like TSOHost, which use the same header to reduce down time for sites which switch to SSL.

Expected result

To provide an SSL secured website which is validated.

Actual result

Either a redirect loop, if you enable Force SSL in the Joomla! Config.

Or insecure content warnings if just coming through https.

This PR fixes the issues

avatar xtech86 xtech86 - open - 30 Dec 2014
avatar jissues-bot jissues-bot - change - 30 Dec 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 30 Dec 2014
Rel_Number 5561
Relation Type Pull Request for
avatar brianteeman brianteeman - change - 30 Dec 2014
The description was changed
Title
Simple SSL improvements to detect if they are using the HTTP_X_FORWARDED...
SSL improvements to detect HTTP_X_FORWARDED_PRONTO
avatar infograf768
infograf768 - comment - 31 Dec 2014
avatar zero-24 zero-24 - change - 31 Dec 2014
Category Libraries
avatar javigomez
javigomez - comment - 2 Jan 2015

The lines that need to be updated are:

FILE: ...is/build/joomla/joomla-cms/libraries/legacy/application/application.php
--------------------------------------------------------------------------------
FOUND 0 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 1171 | WARNING | Line exceeds 150 characters; contains 211 characters
--------------------------------------------------------------------------------
FILE: ...ome/travis/build/joomla/joomla-cms/libraries/joomla/application/web.php
--------------------------------------------------------------------------------
FOUND 0 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 844 | WARNING | Line exceeds 150 characters; contains 212 characters
--------------------------------------------------------------------------------
FILE: /home/travis/build/joomla/joomla-cms/libraries/joomla/uri/uri.php
--------------------------------------------------------------------------------
FOUND 0 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 66 | WARNING | Line exceeds 150 characters; contains 214 characters
--------------------------------------------------------------------------------
FILE: ...travis/build/joomla/joomla-cms/libraries/joomla/environment/browser.php
--------------------------------------------------------------------------------
FOUND 0 ERROR(S) AND 1 WARNING(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 674 | WARNING | Line exceeds 150 characters; contains 211 characters
--------------------------------------------------------------------------------

The problem is that the lines are longer than 150 chars, please break them in two lines.

avatar piotr-cz
piotr-cz - comment - 2 Jan 2015
avatar xtech86 xtech86 - close - 5 Jan 2015
avatar xtech86 xtech86 - change - 5 Jan 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-01-05 11:05:05

Add a Comment

Login with GitHub to post a comment