From 8c26249d464f610ad4aa135a24e0174d6eae922f Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Mon, 16 Sep 2013 21:17:14 +0100 Subject: [PATCH] Adding extra paths to not allow slugs for --- core/server/models/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/models/base.js b/core/server/models/base.js index 016e9384b7..24e9e37630 100644 --- a/core/server/models/base.js +++ b/core/server/models/base.js @@ -121,7 +121,7 @@ GhostBookshelf.Model = GhostBookshelf.Model.extend({ // Remove trailing hypen slug = slug.charAt(slug.length - 1) === '-' ? slug.substr(0, slug.length - 1) : slug; // Check the filtered slug doesn't match any of the reserved keywords - slug = /^(ghost|ghost\-admin|admin|wp\-admin|dashboard|login|archive|archives|category|categories|tag|tags|page|pages|post|posts|user|users)$/g + slug = /^(ghost|ghost\-admin|admin|wp\-admin|wp\-login|dashboard|logout|login|signin|signup|signout|register|archive|archives|category|categories|tag|tags|page|pages|post|posts|user|users)$/g .test(slug) ? slug + '-post' : slug; //if slug is empty after trimming use "post"