Fix smoke fork bomb (#7401)

This commit is contained in:
Leon Friedrich
2022-04-05 04:02:33 +12:00
committed by GitHub
parent 39c81f4a50
commit 66b0820ed6
6 changed files with 95 additions and 7 deletions

View File

@@ -131,7 +131,10 @@ public sealed partial class SolutionContainerSystem
public static string ToPrettyString(Solution solution)
{
var sb = new StringBuilder();
sb.Append("[");
if (solution.Name == null)
sb.Append("[");
else
sb.Append($"{solution.Name}:[");
var first = true;
foreach (var (id, quantity) in solution.Contents)
{