Don't repeatedly trust the same .dmb

This commit is contained in:
Jordan Brown
2020-05-04 02:21:47 -04:00
parent 0b73908b3b
commit 12d9f2caab
@@ -89,6 +89,9 @@ namespace Tgstation.Server.Host.Components.Byond
trustedFileText = String.Empty;
}
if (trustedFileText.Contains(fullDmbPath, StringComparison.Ordinal))
return;
trustedFileText = $"{trustedFileText}{fullDmbPath}{Environment.NewLine}";
var newTrustedFileBytes = Encoding.UTF8.GetBytes(trustedFileText);