0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server
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
..
adapters Fixed timeout in default scheduler 2020-04-23 15:15:12 +01:00
api Fixed allowSelfSignup value in site data 2020-04-21 23:35:16 +05:30
config Refactored existing adapters to use adapter-manager 2020-04-05 21:13:47 +02:00
data 🐛 Fixed importer always erroring 2020-04-15 13:24:43 +01:00
lib Moved lib/thing/index.js files to lib/thing.js 2020-04-09 10:06:20 +01:00
models Returned full error upon missing tag/label 2020-04-15 10:15:48 +01:00
public Added minified members.js file handling 2020-02-26 14:08:10 +08:00
services Fixed incorrect member first name in session data 2020-04-22 19:28:43 +05:30
translations Remove External Apps 2020-03-20 10:40:22 +00:00
views
web Fixed admin host with port causing infinite redirect (#11767) 2020-04-23 19:00:28 +01:00
analytics-events.js
ghost-server.js Added debug info to controller process messages 2020-04-06 10:44:39 +01:00
index.js Moved web/parent-app to web/parent/app 2020-04-21 18:08:29 +01:00
overrides.js
sentry.js Switched Sentry to use helper file for Ghost version 2020-03-26 15:35:46 +00:00
update-check.js Added site URL to Update Check body 2020-03-09 09:48:04 +00:00