=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Doc/cgi.sm1,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- OpenXM/src/kan96xx/Doc/cgi.sm1 2004/09/27 01:20:46 1.3 +++ OpenXM/src/kan96xx/Doc/cgi.sm1 2004/09/27 08:32:05 1.4 @@ -1,4 +1,4 @@ -% $OpenXM: OpenXM/src/kan96xx/Doc/cgi.sm1,v 1.2 2004/09/24 13:15:27 takayama Exp $ +% $OpenXM: OpenXM/src/kan96xx/Doc/cgi.sm1,v 1.3 2004/09/27 01:20:46 takayama Exp $ % OpenXM/src/polymake/cgi/cgi-polymake.sh % is a shell script to call sm1/polymake as a CGI script. % Override as /doPolymake {doPolymake.OoHG} def if you need. @@ -96,16 +96,21 @@ /cgiPolymake { { [(getenv) (QUERY_STRING)] extension /cgi.query_string set - cgi.query_string isString { } + cgi.query_string isString { + cgi.query_string length 0 eq { + cgiPolymake.errorMessage message exit + } { } ifelse + } { cgiPolymake.errorMessage message exit } ifelse - cgi.body.http0 message + cgi.body.http0 message cgi.query_string cgiPolymake.0 cgi.body cgiReplyInHttp0 /cgi.body.http set cgi.body.http message exit } loop + [(flush)] extension } def /cgiPolymake.errorMessage [ (Content-Type: text/html) nl @@ -120,7 +125,7 @@ () nl (
) nl (