On Sat, 30 Sep 2000, iain truskett wrote:

> * Alan Gutierrez ([EMAIL PROTECTED]) [30 Sep 2000 14:47]:
> 
> [...]
> > Pity about Solaris. I wonder if Gerard Richter, HTML::Embperl mainter,
> > has ideas about this?
> 
> Does it really matter since it's a textarea? Typically you know which
> fields are only going to have one value and can just not split the field
> at tabs.

It won't matter much. But consider:

<html>
<body>
<form>
<textarea name="p" value="a"></textarea><br>
<textarea name="p" value="b"></textarea><br>
<textarea name="p" value="c"></textarea><br>
<input type="submit">
</form>
</body>
</html>

If just clicks submit then the above will post the following:

http://www.foo.com/bar?p=a&p=b&p=c

Which would give C< $CGI{p} eq "a\tb\t\c" >

If the user is on Netscape on Solaris and enters a tab in any of these
textarea elements things break.

So, I guess you just Don't Do That. (It is a down-right goofy thing to
do.) In the unlikely event that this construct appealed to you, you could use
input elements because they don't accept tabs. Better to use a different
construct.

Of course, your best bet is to create an Apache rewrite rule that denies
access to Netscape clients.

Alan Gutierrez

Reply via email to