--- parser3/src/classes/op.C 2004/03/23 09:43:44 1.147 +++ parser3/src/classes/op.C 2004/07/07 16:04:53 1.149 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_OP_C="$Date: 2004/03/23 09:43:44 $"; +static const char * const IDENT_OP_C="$Date: 2004/07/07 16:04:53 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -70,7 +70,6 @@ public: ULN("http-header", HTTP_HEADER); ULN("mail-header", MAIL_HEADER); ULN("uri", URI); - ULN("table", TABLE); ULN("sql", SQL); ULN("js", JS); ULN("xml", XML); @@ -633,7 +632,10 @@ static void _cache(Request& r, MethodPar scope->expires=expires; return; - } + } else if(params.count()<3) + throw Exception("parser.runtime", + 0, + "invalid number of parameters"); // file_spec, expires, body code const String& file_spec=r.absolute(params.as_string(0, "filespec must be string"));