Added SERVER_URL to allowed template variables

This commit is contained in:
Marlon Baeten 2022-03-07 16:15:48 +01:00
parent 1028fefb7f
commit 2e7acfce8d

View File

@ -3,7 +3,15 @@
const _ = require('lodash');
const invalidPatternsRegexes = [/<%[^=]([^<>%]*)%>/m, /\${([^{}]*)}/m];
const authorizedKeys = ['URL', 'CODE', 'USER', 'USER.email', 'USER.username', 'TOKEN'];
const authorizedKeys = [
'URL',
'SERVER_URL',
'CODE',
'USER',
'USER.email',
'USER.username',
'TOKEN',
];
const matchAll = (pattern, src) => {
const matches = [];