mirror of
https://github.com/MailScanner/v5.git
synced 2024-11-10 17:35:06 +08:00
Merge pull request #160 from akissa/fix-7zip
FIX: Untaint the $safename var in unpack7zip
This commit is contained in:
commit
7869cc7d2d
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