Zeros sent to CGI shell scripts

From: Mike Grau <m.grau_at_kcc.state.ks.us>
Date: Thu, 06 Mar 1997 13:55:10 -0600

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_at_kcc.state.ks.us         |      Topeka, KS 66604-4027 USA
http://www.kcc.state.ks.us     |         tel: 913.271.3236
=====================================================================
Received on Thu Mar 06 1997 - 21:15:48 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT