You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Vijaya Dasari <vi...@zim.mpg.de> on 2003/11/25 10:36:47 UTC
Problem with Escaping data
Hi,
I have problem in escaping data from the value attribute of the <INPUT>
tag.
I have some thing like this
<INPUT TYPE="text" NAME="test" VALUE="[+$elevalue+]" SIZE="40">
if the $elevalue value contains any double quotes then the data is shown
properly in the form.
I saw some similar problem in the discussion at
http://www.gossamer-threads.com/archive/mod_perl_C1/embperl_F6/Quotes_in
_hidden_input_values_from_%25fdat_not_escaped_correctly._P49807/
There it says that this problem is solved in the Embperl 2.0b9. we are
using the same version.
Any help appreciated,
Thanks,
Vijaya.
-------------------------------------------
Vijaya Krishna Dasari
Heinz Nixdorf Zentrum fuer Informationsmanagement in der
Max-Planck-Gesellschaft (ZIM)
Phone: +49-89-3299-1557
Fax: +49-89-3299-1555
E-Mail: vid@zim.mpg.de
http: www.zim.mpg.de
Boltzmannstrasse 2/ITER Gebaeude
D- 85748 Garching
GERMANY
-------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with Escaping data
Posted by Gerald Richter <ri...@ecos.de>.
> But when I start the apache, it is giving an error message like
> Cannot load Embperl.so
> undefined symbol: EMBPERL2_Char2XML
>
Oops, this table is really missing in the file. Use the attached one, that
should fix the problem
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
RE: Problem with Escaping data
Posted by Vijaya Dasari <vi...@zim.mpg.de>.
Hi,
I compiled the Embperl by copying epchar.c.min as epchar.c. make was
fine with little warnings..
Config.c: In function `XS_Embperl__Component__Config_expires_func':
Config.c:609: warning: assignment from incompatible pointer type
Config.c: In function `XS_Embperl__Component__Config_cache_key_func':
Config.c:651: warning: assignment from incompatible pointer type
eq.c: In function `XS_Embperl__Req_errdat1':
Req.c:1087: warning: assignment makes integer from pointer without a
cast
Req.c: In function `XS_Embperl__Req_errdat2':
Req.c:1128: warning: assignment makes integer from pointer without a
cast
Req.c: In function `XS_Embperl__Req_lastwarn':
Req.c:1169: warning: assignment makes integer from pointer without a
cast
But when I start the apache, it is giving an error message like
Cannot load Embperl.so
undefined symbol: EMBPERL2_Char2XML
We are loading the modules in httpd.conf as
LoadModule perl_module modules/mod_perl_09.so
PerlModule Apache2
LoadModule embperl_module
/opt/dist/perl/lib/site_perl/5.8.0/i686-linux/auto/Embperl/Embperl.so
Embperl is 2.0b9
Thanks,
Vijaya.
>-----Original Message-----
>From: Gerald Richter [mailto:richter@ecos.de]
>Sent: Tuesday, November 25, 2003 3:06 PM
>To: Vijaya Dasari; embperl@perl.apache.org
>Subject: Re: Problem with Escaping data
>
>>
>> The variable is set in the http.conf file as
>> PerlSetEnv EMBPERL_ESCMODE 0
>>
>
>If you turn escaping off, then you don't need to wonder about that it
is
>turned off :-)
>
>If you send out utf8 data, recompile Embperl and copy epchar.c.min to
>epchar.c before. This will avoid escaping character above 0x7f. Then
you
>should be able to turn ESCMODE on again.
>
>Gerald
>
>
>--------------------------------------------------------------
>Gerald Richter ecos electronic communication services gmbh
>IT-Securitylösungen * dynamische Webapplikationen * Consulting
>
>Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
>E-Mail: richter@ecos.de Voice: +49 6133 939-122
>WWW: http://www.ecos.de/ Fax: +49 6133 939-333
>--------------------------------------------------------------
>|
>| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
>|
>+-------------------------------------------------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
>For additional commands, e-mail: embperl-help@perl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with Escaping data
Posted by Gerald Richter <ri...@ecos.de>.
>
> The variable is set in the http.conf file as
> PerlSetEnv EMBPERL_ESCMODE 0
>
If you turn escaping off, then you don't need to wonder about that it is
turned off :-)
If you send out utf8 data, recompile Embperl and copy epchar.c.min to
epchar.c before. This will avoid escaping character above 0x7f. Then you
should be able to turn ESCMODE on again.
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Problem with Escaping data
Posted by Vijaya Dasari <vi...@zim.mpg.de>.
Hi,
The variable is set in the http.conf file as
PerlSetEnv EMBPERL_ESCMODE 0
I tried printing the value of ESCMODE, this is fine, it is shown as we
set in the conf file.
And I tried setting $escmode=1 locally at the time of form generation.
The encoding of the double quotes works fine, but the data in the
variables is loosing the Unicodeness.
(the data comes from a Unicode database, and we are using perl 5.8.0 and
the page content-type is set to UTF8 ).
Thanks,
Vijaya.
>-----Original Message-----
>From: Gerald Richter [mailto:richter@ecos.de]
>Sent: Tuesday, November 25, 2003 1:20 PM
>To: Vijaya Dasari; embperl@perl.apache.org
>Subject: Re: Problem with Escaping data
>
>>
>> I have problem in escaping data from the value attribute of the
>> <INPUT> tag.
>>
>> I have some thing like this
>>
>> <INPUT TYPE="text" NAME="test" VALUE="[+$elevalue+]" SIZE="40">
>>
>> if the $elevalue value contains any double quotes then the data is
>> shown properly in the form.
>>
>
>Do you set $escmode or EMbperl_ESCMODE somewhere?
>
>To be sure you can print out the value with [+ $escmode +]
>
>
>Gerald
>
>
>--------------------------------------------------------------
>Gerald Richter ecos electronic communication services gmbh
>IT-Securitylösungen * dynamische Webapplikationen * Consulting
>
>Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
>E-Mail: richter@ecos.de Voice: +49 6133 939-122
>WWW: http://www.ecos.de/ Fax: +49 6133 939-333
>--------------------------------------------------------------
>|
>| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
>|
>+-------------------------------------------------------------
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
>For additional commands, e-mail: embperl-help@perl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with Escaping data
Posted by Gerald Richter <ri...@ecos.de>.
>
> I have problem in escaping data from the value attribute of the
> <INPUT> tag.
>
> I have some thing like this
>
> <INPUT TYPE="text" NAME="test" VALUE="[+$elevalue+]" SIZE="40">
>
> if the $elevalue value contains any double quotes then the data is
> shown properly in the form.
>
Do you set $escmode or EMbperl_ESCMODE somewhere?
To be sure you can print out the value with [+ $escmode +]
Gerald
--------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
--------------------------------------------------------------
|
| ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Problem with Escaping data
Posted by Rado Petriík <br...@lee.sk>.
Another way.
[- $fdat{'test'} = 'http://www.gossamer-threads.com/archive/mod_perl_C1/embperl_F6/Quotes_in' -]
<INPUT TYPE="text" NAME="test" SIZE="40">
Rado.
On Tue, 25 Nov 2003 10:36:47 +0100
"Vijaya Dasari" <vi...@zim.mpg.de> wrote:
> Hi,
>
> I have problem in escaping data from the value attribute of the <INPUT>
> tag.
>
> I have some thing like this
>
> <INPUT TYPE="text" NAME="test" VALUE="[+$elevalue+]" SIZE="40">
>
> if the $elevalue value contains any double quotes then the data is shown
> properly in the form.
>
> I saw some similar problem in the discussion at
> http://www.gossamer-threads.com/archive/mod_perl_C1/embperl_F6/Quotes_in
> _hidden_input_values_from_%25fdat_not_escaped_correctly._P49807/
>
>
> There it says that this problem is solved in the Embperl 2.0b9. we are
> using the same version.
>
> Any help appreciated,
>
> Thanks,
> Vijaya.
>
>
> -------------------------------------------
> Vijaya Krishna Dasari
> Heinz Nixdorf Zentrum fuer Informationsmanagement in der
> Max-Planck-Gesellschaft (ZIM)
> Phone: +49-89-3299-1557
> Fax: +49-89-3299-1555
> E-Mail: vid@zim.mpg.de
> http: www.zim.mpg.de
> Boltzmannstrasse 2/ITER Gebaeude
> D- 85748 Garching
> GERMANY
> -------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org