You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Michael Smith <mj...@iii.co.uk> on 2001/03/23 17:38:14 UTC
Embperl in Authentication Phase
Dear All,
I'm using embperl in the authentication phase, via Apache::AuthCookie to produce a login page. It actually works pretty well but I'm experiencing one problem that I can't seem to get round - namely that my characters are being escaped; for example & is being converted in to &. In normal embperl I'm able to turn this off with a simple $escmode=0, but this doesn't seem to have any effect under AuthCookie.
Anyone else tried this / experienced similar problems / know all the answers?
Thanks
Mike
Re: Embperl in Authentication Phase
Posted by Michael Smith <mj...@iii.co.uk>.
> > Well what was happening was this
> >
> > $escmode=0;
> > [- Execute("....") -]
> >
> > and it turned out that within the component $escmode was not zero. I
> > managed to get round it easily enough, by setting $escmode in the
> component.
> > But it's odd it didn't seem to get passed. Maybe it's just me! :)
> >
>
> $escmode is reseted to whatever you have set it by the EMBPERL_ESCMODE
> configuration directive or to ist's default (3) at the start of each new
> file. So what you see is the indented behaviour.
>
> Gerald
Right, in which case my explanation wasn't sufficient! I also have
EMBPERL_ESCMODE set to 0 in httpd.conf. Perhaps this isn't actually applied
for something running under AuthCookie?
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Embperl in Authentication Phase
Posted by Gerald Richter <ri...@ecos.de>.
>
> Well what was happening was this
>
> $escmode=0;
> [- Execute("....") -]
>
> and it turned out that within the component $escmode was not zero. I
> managed to get round it easily enough, by setting $escmode in the
component.
> But it's odd it didn't seem to get passed. Maybe it's just me! :)
>
$escmode is reseted to whatever you have set it by the EMBPERL_ESCMODE
configuration directive or to ist's default (3) at the start of each new
file. So what you see is the indented behaviour.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Embperl in Authentication Phase
Posted by Michael Smith <mj...@iii.co.uk>.
> > namely that my characters are being escaped; for example & is being
> converted in to &.
> > In normal embperl I'm able to turn this off with a simple $escmode=0,
but
> this doesn't seem
> > to have any effect under AuthCookie.
>
> This should work under AuthCookie as well. Try to read back $escmode (e.g.
> [+ $escmode +] ). Do you get the right value ? (must be 0 not empty!)
Well what was happening was this
$escmode=0;
[- Execute("....") -]
and it turned out that within the component $escmode was not zero. I
managed to get round it easily enough, by setting $escmode in the component.
But it's odd it didn't seem to get passed. Maybe it's just me! :)
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Embperl in Authentication Phase
Posted by Gerald Richter <ri...@ecos.de>.
> namely that my characters are being escaped; for example & is being
converted in to &.
> In normal embperl I'm able to turn this off with a simple $escmode=0, but
this doesn't seem
> to have any effect under AuthCookie.
This should work under AuthCookie as well. Try to read back $escmode (e.g.
[+ $escmode +] ). Do you get the right value ? (must be 0 not empty!)
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org