mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-02 15:45:33 +00:00
feat(core): Add URL encryption for GDPR compliancy. Disable url encryption for caldav.
This commit is contained in:
1 parent
42511d666f
commit
fc778295ff
6 files changed
+17
-14
No files matched your search
@@ -1296,13 +1296,13 @@ static const NSString *kEncryptedUserNamePrefix = @"uenc";
|
||||
}
|
||||
|
||||
/* Encryption */
|
||||
+ (NSString *) getEncryptedUsernameIfNeeded:(NSString *)username
|
||||
+ (NSString *) getEncryptedUsernameIfNeeded:(NSString *)username request: (WORequest *)request
|
||||
{
|
||||
NSException *exception;
|
||||
NSString *tmp, *cacheKey;
|
||||
SOGoCache *cache;
|
||||
|
||||
if (![[SOGoSystemDefaults sharedSystemDefaults] isURLEncryptionEnabled] || [username isEqualToString: @"anonymous"])
|
||||
if (![[SOGoSystemDefaults sharedSystemDefaults] isURLEncryptionEnabled] || [username isEqualToString: @"anonymous"] || [[request requestHandlerKey] isEqualToString:@"dav"])
|
||||
return username;
|
||||
|
||||
cache = [SOGoCache sharedCache];
|
||||
@@ -1331,13 +1331,13 @@ static const NSString *kEncryptedUserNamePrefix = @"uenc";
|
||||
}
|
||||
}
|
||||
|
||||
+ (NSString *) getDecryptedUsernameIfNeeded:(NSString *)username
|
||||
+ (NSString *) getDecryptedUsernameIfNeeded:(NSString *)username request: (WORequest *)request
|
||||
{
|
||||
NSException *exception;
|
||||
NSString *tmp, *cacheKey;
|
||||
SOGoCache *cache;
|
||||
|
||||
if (![[SOGoSystemDefaults sharedSystemDefaults] isURLEncryptionEnabled] || [username isEqualToString: @"anonymous"])
|
||||
if (![[SOGoSystemDefaults sharedSystemDefaults] isURLEncryptionEnabled] || [username isEqualToString: @"anonymous"] || [[request requestHandlerKey] isEqualToString:@"dav"])
|
||||
return username;
|
||||
|
||||
cache = [SOGoCache sharedCache];
|
||||
|
||||
Reference in new issue
Block a user