Skip to content
Snippets Groups Projects
Commit bd17e196 authored by rswindell's avatar rswindell
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment