mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-27 22:35:22 +00:00
Merge pull request #124 from Zentyal/jgarcia/multidomain_cache_tables
Multidomain cache tables
This commit is contained in:
@@ -2644,7 +2644,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
parts in this url. We strip the '-' character in case we have
|
||||
this in the domain part - like foo@bar-zot.com */
|
||||
ocFSTableName = [NSMutableString stringWithFormat: @"sogo_cache_folder_%@",
|
||||
[[user loginInDomain] asCSSIdentifier]];
|
||||
[[user login] asCSSIdentifier]];
|
||||
[ocFSTableName replaceOccurrencesOfString: @"-"
|
||||
withString: @"_"
|
||||
options: 0
|
||||
|
||||
@@ -311,9 +311,9 @@ static NSMapTable *contextsTable = nil;
|
||||
parts in this url. We strip the '-' character in case we have
|
||||
this in the domain part - like foo@bar-zot.com */
|
||||
ocFSTableName = [NSString stringWithFormat: @"sogo_cache_folder_%@",
|
||||
[[[user loginInDomain] asCSSIdentifier]
|
||||
stringByReplacingOccurrencesOfString: @"-"
|
||||
withString: @"_"]];
|
||||
[[[user login] asCSSIdentifier]
|
||||
stringByReplacingOccurrencesOfString: @"-"
|
||||
withString: @"_"]];
|
||||
[parts replaceObjectAtIndex: 4 withObject: ocFSTableName];
|
||||
folderTableURL
|
||||
= [NSURL URLWithString: [parts componentsJoinedByString: @"/"]];
|
||||
|
||||
@@ -142,7 +142,7 @@ typedef enum
|
||||
parts in this url. We strip the '-' character in case we have
|
||||
this in the domain part - like foo@bar-zot.com */
|
||||
ocFSTableName = [NSMutableString stringWithFormat: @"sogo_cache_folder_%@",
|
||||
[[user loginInDomain] asCSSIdentifier]];
|
||||
[[user login] asCSSIdentifier]];
|
||||
[ocFSTableName replaceOccurrencesOfString: @"-"
|
||||
withString: @"_"
|
||||
options: 0
|
||||
|
||||
Reference in New Issue
Block a user