Nemp has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I'm in a bit of a quandry and would appreciate any help or advice you can offer me. I've just started playing with the CGI module rather than trying to hand-roll my own Perl CGI scripts and everything was going fine until I turned on taint checking...
I've copied the code I'm using to the end of this post (it's very basic and I can't see any problems with it, it also runs fine at the command line in my linux install but needs a command line argument '-T' from windows 98 with activestate Perl).
My problem is this: the script will not run on my web-server (hosted on Windows 2000) so long as the 'T' for taint checking exists on the shebang line. I've contacted the customer service for my host to ask them if they have a problem but the reply is 'Our Perl interpreter works correctly, your script is coded badly'.
So basically is there an error in the way I'm using taint-checking in my code?? (Yes I know it's not necessary for the code I've pasted here but this is just a little example) And if there isn't an error in this code - is my provider being straight with me telling me that their 'Perl interpreter' is set up correctly? Or is the '-T' option really new and maybe unsupported by them?
Thanks for your time!
Neil
#!/usr/bin/perl -wT use strict; use CGI; my $q = new CGI; print $q->header, $q->start_html('hello world'), $q->h1('hello world'), $q->end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl hosting setup and taint check.
by TStanley (Canon) on Aug 12, 2002 at 11:37 UTC | |
by tommyw (Hermit) on Aug 12, 2002 at 11:45 UTC | |
by Nemp (Pilgrim) on Aug 12, 2002 at 11:52 UTC | |
by Anonymous Monk on Aug 12, 2002 at 12:31 UTC | |
by Nemp (Pilgrim) on Aug 12, 2002 at 12:46 UTC | |
|
Re: Perl hosting setup and taint check.
by Jaap (Curate) on Aug 12, 2002 at 11:25 UTC | |
by Nemp (Pilgrim) on Aug 12, 2002 at 11:45 UTC | |
|
Re: Perl hosting setup and taint check.
by dws (Chancellor) on Aug 12, 2002 at 17:03 UTC |