Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Microsoft.Android.Build.BaseTasks/Files.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public static bool ExtractAll (ZipArchive zip, string destination, Action<int, i
var fullName = modifyCallback?.Invoke (entry.FullName) ?? entry.FullName;
var outfile = Path.GetFullPath (Path.Combine (destination, fullName));
if (!outfile.StartsWith (fullDestination, StringComparison.OrdinalIgnoreCase)) {
log?.LogWarning ($"Skipping zip entry \"{entry.FullName}\" (resolved as \"{fullName}\") because it would extract outside the destination directory: \"{outfile}\".");
log?.LogDebugMessage ($"Skipping zip entry \"{entry.FullName}\" (resolved as \"{fullName}\") because it would extract outside the destination directory: \"{outfile}\".");
Comment thread
jonathanpeppers marked this conversation as resolved.
continue;
}
files.Add (outfile);
Expand Down