apply the key file mode on load too, so existing keys get fixed

Cette révision appartient à :
Franciskid
2026-07-26 16:24:14 +02:00
Parent 5348b4e78b
révision 96299be57c
+3
Voir le fichier
@@ -111,6 +111,9 @@ public sealed class ShareTokenService
_secretKey = Base64UrlDecode(secretText.Trim());
if (_secretKey.Length >= 16)
{
// Also applied on load so a key written by an older build
// stops being world readable.
RestrictToOwner(_secretPath);
return _secretKey;
}
}