Ghost/core
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
..
client@c8444707b9 Updated Ghost-Admin to v3.13.4 2020-04-20 16:30:34 +01:00
frontend Moved ghost-locals mw into parent app 2020-04-21 18:50:46 +01:00
server Fixed admin host with port causing infinite redirect (#11767) 2020-04-23 19:00:28 +01:00
shared/nql-map-key-values 🏗 Migrated posts.page column to posts.type (#11111) 2019-09-16 11:51:54 +01:00
index.js Changed where we trigger server start/stop announcement (#9815) 2018-08-22 13:28:31 +02:00