mirror of
https://github.com/MailScanner/v5.git
synced 2024-11-10 17:32:56 +08:00
FIX: Untaint the $safename var in unpack7zip
Prevent the taint error in open when the file is encrypted.
This commit is contained in:
parent
c0dc8d8025
commit
86cde73a97
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue