Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTP log analyzer skips non 'p' MIME types #56

Open
zcindori1000 opened this issue Dec 28, 2016 · 0 comments
Open

FTP log analyzer skips non 'p' MIME types #56

zcindori1000 opened this issue Dec 28, 2016 · 0 comments

Comments

@zcindori1000
Copy link

$REVISION = '20161204';
$VERSION = "7.6 (build $REVISION)";

18799	# Define page and extension
18800	#--------------------------
18801	my $PageBool = 1;
18802
18803	# Extension
18804	my $extension = Get_Extension($regext, $urlwithnoquery);
18805	if ( $NotPageList{$extension} || 
18806	($MimeHashLib{$extension}[1]) && $MimeHashLib{$extension}[1] ne 'p') { $PageBool = 0;}

Line 18806 excludes all mime types listed in mime.pm with non 'p' value. This is fine for HTTP logs, but there is problem with FTP logs (xferlog, ...) because analyzer skips valid records from ftp logs (images, audio, video, ...).

Analyze: Status code section is also missing code for ($LogType eq 'F') download processing, so we have problem :-)

19010	elsif ( $LogType eq 'F' ) {    # FTP record
19011	}

I made small change in code on my server to temporary fix this issue:

       ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇ
18806 ($LogType ne 'F' &&  $MimeHashLib{$extension}[1]) && $MimeHashLib{$extension}[1] ne 'p') { $PageBool = 0;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant