Make sure we don't have '-' in table names.
parent
f48839bf55
commit
77dad178d1
|
@ -1968,9 +1968,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
if ([parts count] == 5)
|
if ([parts count] == 5)
|
||||||
{
|
{
|
||||||
/* If "OCSFolderInfoURL" is properly configured, we must have 5
|
/* If "OCSFolderInfoURL" is properly configured, we must have 5
|
||||||
parts in this url. */
|
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_%@",
|
ocFSTableName = [NSString stringWithFormat: @"sogo_cache_folder_%@",
|
||||||
[[user loginInDomain] asCSSIdentifier]];
|
[[[user loginInDomain] asCSSIdentifier]
|
||||||
|
stringByReplacingOccurrencesOfString: @"-"
|
||||||
|
withString: @"_"]];
|
||||||
[parts replaceObjectAtIndex: 4 withObject: ocFSTableName];
|
[parts replaceObjectAtIndex: 4 withObject: ocFSTableName];
|
||||||
folderTableURL
|
folderTableURL
|
||||||
= [NSURL URLWithString: [parts componentsJoinedByString: @"/"]];
|
= [NSURL URLWithString: [parts componentsJoinedByString: @"/"]];
|
||||||
|
|
Loading…
Reference in New Issue