Fix regexp to catch (un)subscribe addresses
This commit is contained in:
parent
2bbf245d83
commit
f2194aab20
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -8,7 +8,7 @@ db['dbSettings'].cache = 0;
|
|||
|
||||
exports.registerRoute = function (hook_name, args, callback) {
|
||||
// Catching (un)subscribe addresses
|
||||
args.app.get(/\/p/*/(un){0,1}subscribe=\/(.*)/, function(req, res) {
|
||||
args.app.get(/\/p\/.*\/(un){0,1}subscribe=(.*)/, function(req, res) {
|
||||
var fullURL = req.protocol + "://" + req.get('host') + req.url;
|
||||
var path=req.url.split("/");
|
||||
var padId=path[2];
|
||||
|
|
Loading…
Reference in a new issue