Nik has asked for the wisdom of the Perl Monks concerning the following question:
if ( param('select') ) { unless (grep { $_ eq param('select') } @display_files) { if ( param('select') =~ /%/ ) { $passage = "*Null Byte Injection* attempted & logged!"; print br() x 2, h1( {class=>'big'}, $passage ); } else { $passage = "*Backwards Directory Traversal* attempted & lo +gged!"; print br() x 2, h1( {class=>'big'}, $passage ); } $select = $dbh->prepare( "UPDATE guestlog SET passage=?, date=?, +counter=counter+1 WHERE host=?" ); $select->execute( $passage, $date, $host ); exit; } open(FILE, "<../data/text/$passage.txt") or die $!;
2006-10-11 Retitled by ysth, as per Monastery guidelines
Original title: 'How to specify a Null chat in a match operation'
|
|---|