mirror of
https://github.com/strapi/strapi.git
synced 2025-08-23 16:19:37 +00:00
Added SERVER_URL to allowed template variables
This commit is contained in:
parent
1028fefb7f
commit
2e7acfce8d
@ -3,7 +3,15 @@
|
|||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
|
|
||||||
const invalidPatternsRegexes = [/<%[^=]([^<>%]*)%>/m, /\${([^{}]*)}/m];
|
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 matchAll = (pattern, src) => {
|
||||||
const matches = [];
|
const matches = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user