forked from svrjs/svrjs
Mitigate log file injection vulnerability at mod file names.
This commit is contained in:
parent
e1e9338806
commit
db6c4faeaf
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -4886,7 +4886,7 @@ function start(init) {
|
|||
// Display mod and server-side JavaScript errors
|
||||
if (process.isPrimary || process.isPrimary === undefined) {
|
||||
modLoadingErrors.forEach(function (modLoadingError) {
|
||||
serverconsole.locwarnmessage("There was a problem while loading a \"" + modLoadingError.modName + "\" mod.");
|
||||
serverconsole.locwarnmessage("There was a problem while loading a \"" + String(modLoadingError.modName).replace(/[\r\n]/g, "") + "\" mod.");
|
||||
serverconsole.locwarnmessage("Stack:");
|
||||
serverconsole.locwarnmessage(generateErrorStack(modLoadingError.error));
|
||||
});
|
||||
|
|
Reference in a new issue