Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -T
    use strict;
    ...
        open( FH, '+>', $params{A} ) or die "$params{A} : untaint \$params
    +{A}";
        close FH;
    }
    
  2. or download this
    $ t-taint.pl
    type 'file' to test: file
    Insecure dependency in open while running with -T switch at ./t-taint.
    +pl line 46, <> line 1.
    
  3. or download this
    # untaint parameters
    for( keys %params )
    ...
            display_message( $messages{error} ) && exit;
        }
    }