mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Merge pull request #1521 from danielyxie/dev
fix exploit that enabled IPC
This commit is contained in:
commit
de0d876638
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -646,6 +646,11 @@ export function runScriptFromScript(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
args = args.map((arg) => {
|
||||||
|
if (typeof arg === "number") return arg;
|
||||||
|
return arg + ""; // force cast to string
|
||||||
|
});
|
||||||
|
|
||||||
// Check if the script is already running
|
// Check if the script is already running
|
||||||
const runningScriptObj = server.getRunningScript(scriptname, args);
|
const runningScriptObj = server.getRunningScript(scriptname, args);
|
||||||
if (runningScriptObj != null) {
|
if (runningScriptObj != null) {
|
||||||
|
@ -302,7 +302,7 @@ export function refreshTheme(): void {
|
|||||||
border: "1px solid " + Settings.theme.well,
|
border: "1px solid " + Settings.theme.well,
|
||||||
},
|
},
|
||||||
standardSuccess: {
|
standardSuccess: {
|
||||||
color: Settings.theme.successLight,
|
color: Settings.theme.primaryLight,
|
||||||
},
|
},
|
||||||
standardError: {
|
standardError: {
|
||||||
color: Settings.theme.errorlight,
|
color: Settings.theme.errorlight,
|
||||||
|
Loading…
Reference in New Issue
Block a user