"A.Pesch" wrote:
> 
> In one of my pages, I got a link which passes on values to a CGI
> script.
> The values have to be inserted between quotation marks, so the HTML
> sourcecode looks like
> .../cgi-bin/tnvbw_anf.pl?B_W=B_W&zOrt="Stuttgart".......
> or
> .../cgi-bin/tnvbw_anf.pl?B_W=B_W&zOrt="Stuttgart".......
> respectively.
> 
> When using the link in either Netscapce 4.x or IE 5.x, the link ist
> correctly interpreted as
> .../cgi-bin/tnvbw_anf.pl?B_W=B_W&zOrt="Stuttgart".......

That is *not* correct bahavior. '"' is no valid char in URIs
and has to be escaped like Mozilla does.

> In Mozilla 0.9.3. however, the link is interpreted as
> .../cgi-bin/tnvbw_anf.pl?B_W=B_W&zOrt=%22Stuttgart%22.....
> ( note the %22 instead of the " " ) and so the CGI scripts does not
> recognize the values I want to pass on.
> 
> Is this a known bug in Mozilla? Any workarounds available?

The source code is buggy and Mozilla works around it.
A CGI should be able to unescape escaped URIs / query strings.

Clarence


Reply via email to