submitting forms

I notice a strange behaviour of Amaya 5.0 (Linux binary distribution) when
submitting a form by pressing the return key inside a text input field.
The xml source is this:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>WWW-Interface für Linux Manual Pages</title>
  <meta name="GENERATOR" content="amaya V5.0" />
</head>

<body>
<h1>WWW-Interface für Linux Manual Pages</h1>

<form method="get" action="/cgi-bin/man">
  <p>Manpage generieren für: <input type="text" size="20" name="name" /> 
  <input type="submit" value="Submit" /><br />
  Ausgabeformat: <input type="radio" name="format" checked="checked"
  value="html" />HTML <input type="radio" name="format" value="ps"
  />PostScript <input type="radio" name="format" value="dvi" />DVI</p>
</form>
</body>
</html>

I proceed as follows:

1. load above page, document location is "http://server/dir/man.html".
2. enter some word, say "startmover", in input field, then press return.
   document location changes to
   "http://server/cgi-bin/man?name=startmover&format=html".
3. click back arrow, document location is as in 1.
4. enter "startmover" in input field, press return.
   document location changes to
   "http://server/cgi-bin/man?name=startmover&format=htmlname=startmover&format=html".
5. every time I repeat this, document location gets longer.

Here is apache's access log:

pike.phil.uni-passau.de - - [05/Jul/2001:21:34:45 +0200] "GET /cgi-bin/man?name=startmover&format=htmlname=startmover&format=html HTTP/1.1" 200 3563 "-" "amaya/V5.0 libwww/5.3.1"

Sometimes, however, the document location gets completely scrambled with non
ascii characters in the document location and in apaches access log, like this:

pike.phil.uni-passau.de - - [05/Jul/2001:21:29:07 +0200] "GET /cgi-bin/man?Pc~\^H@c~\^Hname=startmover&format=html HTTP/1.1" 200 69 "-" "amaya/V5.0 libwww/5.3.1"

and Amaya crashes with "*** Thot: unrecoverable error ***".
This bug seems not to occur when I submit the form by pressing the submit
button.

Karl-Michael Schneider

Received on Thursday, 5 July 2001 15:45:32 UTC