=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Doc/cgi.sm1,v retrieving revision 1.3 retrieving revision 1.8 diff -u -p -r1.3 -r1.8 --- OpenXM/src/kan96xx/Doc/cgi.sm1 2004/09/27 01:20:46 1.3 +++ OpenXM/src/kan96xx/Doc/cgi.sm1 2004/11/22 12:30:32 1.8 @@ -1,8 +1,10 @@ -% $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.7 2004/10/13 12:11:31 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. +/cgi.verbose 0 def + [(plugin-cgi) [(Key words: ) ( cgiUrlEncodingToKeyValuePair) @@ -96,16 +98,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 +127,7 @@ () nl (
) nl (