Skip to content
Snippets Groups Projects
Commit 8fe3161d authored by deuce's avatar deuce
Browse files

Add try/catch around possibly faulting parseInt()

parent c881216c
No related branches found
No related tags found
No related merge requests found
......@@ -361,8 +361,11 @@ function str_cmds(str)
if(bbs.check_syspass()) {
str=str.substr(3);
writeln("");
bbs.spy(parseInt(get_arg(str)));
write("\1n\r\nSpy session complete.\r\n");
try { // May throw on parseInt()
bbs.spy(parseInt(get_arg(str)));
write("\1n\r\nSpy session complete.\r\n");
}
catch (e) {}
}
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment