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

Display an error message if the path_info doesn't contain the required elements

(sub-code and filename).
parent 6898c94e
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,10 @@ var sub=path[1];
var id=parseInt(path[2]);
var filename=path[3];
if(sub==undefined || filename==undefined) {
error("Invalid path: " + http_request.path_info);
}
var msgbase = new MsgBase(sub);
if(msgbase.open!=undefined && msgbase.open()==false) {
error(msgbase.last_error);
......
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