Add a check to register route handler
Change-Id: I59d465eb155b7e6fbf5cf739e2cd03c266f8f6e3
This commit is contained in:
@@ -240,6 +240,7 @@
|
||||
page(/^\/register(\/.*)?/, function(ctx) {
|
||||
app.params = {justRegistered: true};
|
||||
var path = ctx.params[0] || '/';
|
||||
if (path[0] !== '/') { return; }
|
||||
page.show(path);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user