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

Commit bd17e196 authored by rswindell's avatar rswindell

Return a 404 error when receiving an HTTP request for an invalid message

group. Resolves error line 31: TypeError: msg_area.grp[grp] is undefined
parent addc4b4b
......@@ -28,6 +28,11 @@ else {
template.showall_toggle+='Yes">'+showall_subs_enable_html;
template.showall_toggle+='</a>';
}
if(!msg_area.grp[grp]) {
http_reply.status="404 Not Found";
write("<html><head><title>404 Error</title></head><body>Message group " + grp + " does not exist</body></html>");
exit();
}
template.title="Message Subs in Group: "+msg_area.grp[grp].description;
if(do_header)
......
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