Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
#import <FileProvider/FileProvider.h>
#include <QLoggingCategory>
+#include <QRegularExpression>
#include "config.h"
#include "fileproviderdomainmanager.h"
QString domainIdentifierForAccount(const OCC::Account * const account)
{
Q_ASSERT(account);
- return account->userIdAtHostWithPort();
+ static const QRegularExpression illegalChars("[:/]");
+ return account->userIdAtHostWithPort().replace(illegalChars, "-");
}
QString domainIdentifierForAccount(const OCC::AccountPtr account)