in reply to Re^8: somethign wrong with the sumbit
in thread somethign wrong with the sumbit
When i try to run it and select something valid i see no response though.....print header( -charset=>'utf-8' ); my $passage = param('select') || "Αρχική + Σελίδα!"; my @files = glob "$ENV{'DOCUMENT_ROOT'}/data/text/*.txt"; my @display_files = map m{([^/]+)\.txt}, @files; Encode::from_to($_, 'ISO-8859-7', 'utf8') for @display_files; if ( param('select') ) { #If user selected an item from the drop do +wn menu unless ( grep { $_ eq param('select') } @display_files ) #Unless +user selection doesn't match one of the valid filenames within @displ +ay_files { if( param('select') =~ /\0/ ) { $passage = "*Null Byte Injection* attempted & logged!"; print br() x 2, h1( {class=>'big'}, $passage ); } if( param('select') =~ /\/\.\./ ) { $passage = "*Backwards Directory Traversal* attempted & logge +d!"; print br() x 2, h1( {class=>'big'}, $passage ); } $select = $db->prepare( "UPDATE guestlog SET passage=?, date=?, +counter=counter+1 WHERE host=?" ); $select->execute( $passage, $date, $host ); exit; }
Very weird, not even the usual "backward error..."
|
|---|