Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($ENV{'REQUEST_METHOD'} =~ m/post/i){
- read(STDIN, $L, $ENV{'CONTENT_LENGTH'});
- @c = split(/&/, $L);
- foreach (@c) {
- ($v, $d) = split(/=/, $_);
- @RAWconfig = split(/\n/, decode($d)) if $v eq 'config';
- $httpheader="Content-type:text/html\n";
- $httpheader.="Content-disposition: attachment; filename=audit$date.html\n" if $v eq 'forcedownload' and $d eq 'true';
- $audit = $d if $v eq 'audit';
- }
- }
- else{@RAWconfig=<STDIN>;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement