Jenda Krynicky wrote:
> From: "Bob Showalter" <[EMAIL PROTECTED]>
> > Vic wrote:
> > > I wanna ask when running Apache 2.046 under Windows XP with
> > > mod_cgi, how can I turn on the taint mode for the Perl
> > > interpretor? (i guess the shebang line wont work since windows
> > > nvr look at them anyway.)
> >
> > No. Perl will parse the #! line even on Win32. This is explained in
> > "perldoc perlrun". So adding -T will enable taint mode:
> >
> >    #!/usr/bin/perl -T
>
> I'm afraid you are wrong.

Shoot. First time this year, too :~)

>
> I mean, sure perl does parse the shebang line and processes the
> options specified there, but in this particular case it's
> "Too late for "-T" option at script.pl line 1"
>
> Try to create a tiny script containing just that shebang line and run
> it with
>
> perl script.pl
>
> So it would have to be Apache who would parse the line and pass the -
> T to perl.exe when starting it.

Thanks for the correction. Sorry for sending the OP down the wrong trail...

Apache's ScriptInterpreterSource directive may be the answer here.

http://httpd.apache.org/docs/mod/core.html#scriptinterpretersource

I don't have a Win32 Apache handy, so I'm not sure.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to