mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
Don't repeatedly trust the same .dmb
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user