Merge pull request #119 from shawniverson/111817fixunpack

Escape space before passing to unrar extract
This commit is contained in:
Shawn Iverson 2017-11-19 13:21:39 -05:00 committed by GitHub
commit a7036442d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);