mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Sanitize subflow env var names properly when building ui form
This commit is contained in:
parent
fe084a4478
commit
2daedf8fd5
@ -1668,7 +1668,7 @@ RED.subflow = (function() {
|
||||
}
|
||||
|
||||
function getSubflowEnvPropertyName(name) {
|
||||
return 'node-input-subflow-env-'+name.replace(/\s/g,"_");
|
||||
return 'node-input-subflow-env-'+name.replace(/[^a-z0-9-_]/ig,"_");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user