=================================================================== RCS file: /home/cvs/OpenXM/src/kan96xx/Doc/cgi.sm1,v retrieving revision 1.3 retrieving revision 1.7 diff -u -p -r1.3 -r1.7 --- OpenXM/src/kan96xx/Doc/cgi.sm1 2004/09/27 01:20:46 1.3 +++ OpenXM/src/kan96xx/Doc/cgi.sm1 2004/10/13 12:11:31 1.7 @@ -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.6 2004/09/28 12:20:39 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 (