Merge pull request #160 from akissa/fix-7zip

FIX: Untaint the $safename var in unpack7zip
This commit is contained in:
Shawn Iverson 2018-02-23 05:12:56 -05:00 committed by GitHub
commit 7869cc7d2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3189,6 +3189,8 @@ sub Unpack7zip {
$nopathname = $name;
$nopathname =~ s/^.*\///;
$safename = $this->MakeNameSafe('r'.$nopathname,$explodeinto);
$safename =~ m|(.*)|;
$safename = $1;
$NameTwo = $safename;
$NameTwo = $1 if $NameTwo =~ /([^\/]+)$/;
#MailScanner::Log::InfoLog("UnPackRar: Member : %s", $member);