[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Running WML from WML?

On Sat, May 08, 1999, Denis Barbier wrote:

> > BTW, the same bug occurs if you run wml from an ePerl CGI as well. 
> >  
> > > foreach $key (keys (%ENV)) {
> > >     if ($key =~ /^SCRIPT_SRC/) {
> > > 	delete $ENV{$key};
> > >     }
> > > }
> > 
> > And you need to delete VERSION_* as well (ePerl environment variables).
> Ralf, could you explain why ePerl recursive calls are prohibited?
> I think the problem comes from the ``URL <--> real paths'' translation
> which must be performed when server side scripting. Stéphane showed how
> to work around this problem by clearing some environment variables, but
> there must be a better way.

The problem is that the runtime mode of ePerl is determined from the CGI
environment. So when you want to force a different mode the environment has to
be cleaned. Perhaps WML should always run ePerl with --mode=FILTER?
> I put the modSSL web page on the list of WML generated web sites.

Oh, thanks, Denis. I've totally forgot this.

                                       Ralf S. Engelschall
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com