mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure filename is at least an empty string!
This commit is contained in:
parent
99b049fe2d
commit
aa302ecc32
@ -76,7 +76,7 @@ module.exports = function(RED) {
|
|||||||
filename = value;
|
filename = value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
filename = filename || "";
|
||||||
var fullFilename = filename;
|
var fullFilename = filename;
|
||||||
if (filename && RED.settings.fileWorkingDirectory && !path.isAbsolute(filename)) {
|
if (filename && RED.settings.fileWorkingDirectory && !path.isAbsolute(filename)) {
|
||||||
fullFilename = path.resolve(path.join(RED.settings.fileWorkingDirectory,filename));
|
fullFilename = path.resolve(path.join(RED.settings.fileWorkingDirectory,filename));
|
||||||
@ -321,7 +321,7 @@ module.exports = function(RED) {
|
|||||||
filename = (value || "").replace(/\t|\r|\n/g,'');
|
filename = (value || "").replace(/\t|\r|\n/g,'');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
filename = filename || "";
|
||||||
var fullFilename = filename;
|
var fullFilename = filename;
|
||||||
var filePath = "";
|
var filePath = "";
|
||||||
if (filename && RED.settings.fileWorkingDirectory && !path.isAbsolute(filename)) {
|
if (filename && RED.settings.fileWorkingDirectory && !path.isAbsolute(filename)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user