Ghost/core/server/middleware
Jesse Dijkstra f546a5ce1d Remove open redirect by removing double slashes from redirects (#7247)
no issue

Double slashes are treated as a HTTP calls as specified in [RFC1801](http://www.ietf.org/rfc/rfc1808.txt). Because of this behaviour the uncapitalise created an open redirect. By removing double slashes in the path we ensure open redirects cannot be created.

As an example, please click the following URL: https://dev.ghost.org///Google.com/.

This issue  has been reported by pentesters of our product [LearningSpaces.io](http://learningspaces.io).
2016-08-23 13:47:59 +02:00
..
api Version matching middleware 2016-06-09 17:08:44 +01:00
validation feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
auth-strategies.js Check client is enabled before auth 2015-11-04 16:59:56 +00:00
auth.js Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
cache-control.js deps: grunt-jscs@2.1.0 2015-10-12 19:21:16 +01:00
check-ssl.js SSL redirects 2015-09-25 12:02:14 +02:00
cors.js Add config URLS to CORS whitelist 2016-04-19 13:39:24 +01:00
decide-is-admin.js Moves the decideIsAdmin into its own file. 2015-06-09 14:02:22 -07:00
index.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
labs.js Subscribers: Model, API & CSV import/export 2016-05-11 10:28:10 +02:00
maintenance.js Allow maintenance mode to be set in config.js (#7124) 2016-07-25 21:28:35 +02:00
oauth.js Harvest server side strings 2015-12-19 12:12:16 +01:00
redirect-to-setup.js Middleware Refactor 2015-08-04 14:53:58 +02:00
serve-shared-file.js Prep shared API URL util for use on external sites 2015-12-15 11:50:46 +00:00
spam-prevention.js move private-blogging functionality into an internal app 2016-04-11 08:58:41 -05:00
static-theme.js allow manifest.json in theme root (#6986) 2016-06-29 14:44:01 -06:00
theme-handler.js Revert "fix: ensure we initialise activeTheme on bootstrap (#6950)" 2016-07-21 12:26:16 +01:00
uncapitalise.js Remove open redirect by removing double slashes from redirects (#7247) 2016-08-23 13:47:59 +02:00