mirror of
https://github.com/MailScanner/v5.git
synced 2025-02-25 16:05:17 +08:00
Escape space before passing to unrar extract
This commit is contained in:
parent
e559dd8474
commit
96e02d65c7
1 changed files with 3 additions and 0 deletions
|
@ -3027,6 +3027,9 @@ sub UnpackRar {
|
|||
# Check version
|
||||
return 1 unless $UnrarVersion =~ /^\d+\.\d*$/ && ( $UnrarVersion >= 4.0 && $UnrarVersion < 6.0 );
|
||||
|
||||
# Escape spaces in filename
|
||||
$zipname =~ s/\ /\\\ /g;
|
||||
|
||||
# Unrar Version 4x file parse
|
||||
if ($UnrarVersion >= 4.0 && $UnrarVersion < 5.0) {
|
||||
#MailScanner::Log::WarnLog("UnPackRar Testing : %s", $zipname);
|
||||
|
|
Loading…
Reference in a new issue