Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 16f3ad6

Browse files
committed
Version 2.1.1.2
1 parent ad2bda7 commit 16f3ad6

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

KeeOneDriveSync.plgx

11.9 KB
Binary file not shown.

KoenZomers.KeePass.OneDriveSync/Configuration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public static void Load()
202202
var encryptedDatabaseConfigs = PasswordDatabases.Where(pwdDb => pwdDb.Value.RefreshTokenStorage == Enums.OneDriveRefreshTokenStorage.DiskEncrypted);
203203
foreach (var encryptedDatabaseConfig in encryptedDatabaseConfigs)
204204
{
205-
encryptedDatabaseConfig.Value.RefreshToken = Utilities.Unprotect(encryptedDatabaseConfig.Value.RefreshToken);
205+
encryptedDatabaseConfig.Value.RefreshToken = string.IsNullOrWhiteSpace(encryptedDatabaseConfig.Value.RefreshToken) ? null : Utilities.Unprotect(encryptedDatabaseConfig.Value.RefreshToken);
206206
}
207207
}
208208

@@ -226,7 +226,7 @@ public static void Save()
226226

227227
// Refresh token will be stored encrypted on disk, we create a copy of the configuration and encrypt the refresh token
228228
var diskConfiguration = (Configuration)passwordDatabase.Value.Clone();
229-
diskConfiguration.RefreshToken = Utilities.Protect(diskConfiguration.RefreshToken);
229+
diskConfiguration.RefreshToken = string.IsNullOrWhiteSpace(diskConfiguration.RefreshToken) ? null : Utilities.Protect(diskConfiguration.RefreshToken);
230230
passwordDatabasesForStoring.Add(passwordDatabase.Key, diskConfiguration);
231231
break;
232232

KoenZomers.KeePass.OneDriveSync/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("2.1.1.1")]
34+
[assembly: AssemblyVersion("2.1.1.2")]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Download the PLGX and place it inside your KeePass\Plugins folder. Typically thi
1717

1818
## Latest Version
1919

20+
Version 2.1.1.2 - March 13, 2020
21+
22+
- Fixed a bug where corrupted configuration entries could not be deleted [issue 128](https://github.com/KoenZomers/KeePassOneDriveSync/issues/128)
23+
2024
Version 2.1.1.1 - January 20, 2020
2125

2226
- Fixed a bug when you would go into the Graph Any Browser screen and close it again, that it would start throwing exceptions

0 commit comments

Comments
 (0)