Programming/Scripting Resource

Alex Beamish talexb-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Jan 11 17:49:49 UTC 2007


On 1/11/07, John Van Ostrand <john-Da48MpWaEp0CzWx7n4ubxQ at public.gmane.org> wrote:
>
> Aside from Perl (with non-default settings), what language helps to
> force the user to clean the data first?


For those unfamiliar with Perl, the non-default setting to which John is
referring, is changing the first line of the CGI script from

  #!/usr/bin/perl -w

to

  #!/usr/bin/perl -Tw

John MacDonald has already pointed out that taint mode is also enabled
automatically under certain conditions.

And the reason taint mode isn't the default setting is because generating
web pages is only one of the things that Perl is great for. ;) Running an
installation procedure (as one of my Perl scripts does) doesn't need any
taint checking, because all input is coming from a known user via
interactive prompts.

-- 
Alex Beamish
Toronto, Ontario
aka talexb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20070111/903edc13/attachment.html>


More information about the Legacy mailing list