[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#5276: Bug in wn Version: 1.17.0-4



Package: wn
Version: 1.17.0-4

WN does not implement the $PATH_INFO environment variable of the CGI
standard in any sensible manner, although it documents it. Here is a
test script. Install this as /var/wn/cgi-bin/bruce . Attempt to access
the URL "http://localhost/cgi-bin/bruce/foo";. Now, try
"http://cgi.debian.org/cgi-bin/bruce/foo";, to see what it should do.

	Thanks

	Bruce

#!/bin/bash

cat << EOF 
$SERVER_PROTOCOL 200 Bruce Test
Date: `date`
Content-encoding: binary
Content-type: text/html
Server: $SERVER_SOFTWARE

<html>
<title>Title</title>
<body>
Remote host: $REMOTE_HOST ($REMOTE_ADDR)
<br>
Referring script: $HTTP_REFERER
<br>
Query text: `dd bs=$CONTENT_LENGTH count=1 2>/dev/null`
<br>
Path: $PATH_INFO
</body>
</html>
EOF

exit 0

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: