RE: Embperl and fields delimiter

1999-12-13 Thread Gerald Richter

> Actually, the sequence used as delimiter for CGI fields is "\t".
> I think this is not the best choice, cause having a tabulation
> into a field content is always possible (cut & paste, file upload...).
>
> Why not allowing the user to choose the more appropriate
> delimiter, through a ENV var ?
>
> # delimiter = \0
> PerlSetEnv EMBPERL_FIELDS_DELIMITER 0x00
>
> # delimiter = HT
> PerlSetEnv EMBPERL_FIELDS_DELIMITER 0x09
>
> # delimiter = none : use array ref instead for multiple values
> PerlSetEnv EMBPERL_FIELDS_DELIMITER ARRAY_REF
>
> Of course, this delimiter would default to "\t", for backward
> compatibility.
>
> Is this relevant or not ?
>

Yes, it's relevant. I have this already in my mind for one of the next
releases

Gerald


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



Embperl and fields delimiter

1999-12-13 Thread Jean-Philippe FAUVELLE

Actually, the sequence used as delimiter for CGI fields is "\t".
I think this is not the best choice, cause having a tabulation
into a field content is always possible (cut & paste, file upload...).

Why not allowing the user to choose the more appropriate
delimiter, through a ENV var ?

# delimiter = \0
PerlSetEnv EMBPERL_FIELDS_DELIMITER 0x00

# delimiter = HT
PerlSetEnv EMBPERL_FIELDS_DELIMITER 0x09

# delimiter = none : use array ref instead for multiple values
PerlSetEnv EMBPERL_FIELDS_DELIMITER ARRAY_REF

Of course, this delimiter would default to "\t", for backward
compatibility.

Is this relevant or not ?

__
Jean-Philippe FAUVELLE  
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

Responsable du Pole de Developpement Unix/Web
Departement Developpement Applicatif
France Telecom Hosting
40 rue Gabriel Crie, 92245 Malakoff Cedex, France
[http://www.fth.net/] [+33 (0) 1 46 12 67 89]