Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 6d153a1f authored by Rob Swindell's avatar Rob Swindell 💬

Don't open a message base for an invalid sub-board.

Resolves this errors appearing on Vertrauen where the sub=<code> value appears
to be from some *other* Synchronet BBS:
Unrecognized msgbase code: dove-firearms, Request: /msgs/msgs.ssjs?msg_sub=dove-firearms
parent 6c1e03f9
Pipeline #2364 passed with stage
in 7 minutes and 38 seconds
......@@ -30,7 +30,7 @@ var sub=http_request.query.msg_sub;
var s=-1;
if(sub != undefined)
if(sub != undefined && msg_area.sub[sub] != undefined)
var msgbase = new MsgBase(sub);
var message=http_request.query.message;
var m=parseInt(http_request.query.message);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment