From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078609810188.tru64-unix-managers.marc@archive.invalid> From: Mike Grau Date: Thu, 06 Mar 1997 19:55:10 +0000 To: tru64-unix-managers Subject: Zeros sent to CGI shell scripts X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078609810188 Greetings: Anyone running NCSA httpd? I'm running NSCA httpd on DU3.2c. Whenever a zero is sent in a query to a cgi script, the variable $* (or $whatever) fails to get the zero and everything after the zero. The command (like cal) fails with a bad argument. For example, the test-cgi script (#!/bin/sh) run with "test-cgi?3+1998" returns: "argc is 2. argv is 3 1998" -followed by the variables SERVER_SOFTWARE, QUERY_STRING, etc. while test-cgi?3+2001 returns: "argc is 2. argv is 3 2" -followed by nothing or just part of the return page. The QUERY_STRING looks good in every case. I've tried Netscape, Explorer, and Mosaic; and run browsers on MAC, PC, and UNIX. The results are the same in every case. I've used both NCSA 1.5.1 and 1.5.2 with no difference. IDEAS?? What tree should I be barking under -- DU or HTTPD. The cgi's work fine as long as I don't try to send 'em a zero. TIA. Any suggestions welcome! -- ===================================================================== Michael Grau | Kansas Corporation Commission | 1500 SW Arrowhead RD m.grau@kcc.state.ks.us | Topeka, KS 66604-4027 USA http://www.kcc.state.ks.us | tel: 913.271.3236 =====================================================================