Ghost/test
Hannah Wolfe 4a67ea5546
Fixed admin host with port causing infinite redirect (#11767)
closes #11766, refs 7284227f1

- when we changed from host to hostname, more changed than just using the x-forwarded-host if trusted because express req.hostname does not return the port
- this causes issues with an infinite redirect if you try to set a different admin host with a port
- added a test to demonstrate the case, that didn't fail due to an error in the test logic
- switched from redirecting based on req.hostname to using req.vhost.host which has the correct trusted, requested value that we should rely on
- simplified the comparison logic to explicitly compare host with host
2020-04-23 19:00:28 +01:00
..
api-acceptance Changed {subscriber_firstname} replacement to {first_name} 2020-04-20 14:25:58 +01:00
frontend-acceptance Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
regression Moved web/parent-app to web/parent/app 2020-04-21 18:08:29 +01:00
unit Fixed admin host with port causing infinite redirect (#11767) 2020-04-23 19:00:28 +01:00
utils Added eslint exceptions in test-suite 2020-04-23 09:15:22 +01:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.json Fixed linting error 2020-04-17 11:32:29 +01:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00