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;


In reply to Perl hosting setup and taint check. by Nemp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.