mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
commit
245d859699
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ function redirectToSetup(req, res, next) {
|
||||||
function uncapitalise(req, res, next) {
|
function uncapitalise(req, res, next) {
|
||||||
var pathToTest = req.path,
|
var pathToTest = req.path,
|
||||||
isSignupOrReset = req.path.match(/(\/ghost\/(signup|reset)\/)/i),
|
isSignupOrReset = req.path.match(/(\/ghost\/(signup|reset)\/)/i),
|
||||||
isAPI = req.path.match(/(\/ghost\/api\/v0[\d\.]+\/.*?\/)/i);
|
isAPI = req.path.match(/(\/ghost\/api\/v[\d\.]+\/.*?\/)/i);
|
||||||
|
|
||||||
if (isSignupOrReset) {
|
if (isSignupOrReset) {
|
||||||
pathToTest = isSignupOrReset[1];
|
pathToTest = isSignupOrReset[1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue