Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
delegate.sendFileProviderDomainIdentifier()
} else if (command == "ACCOUNT_DETAILS") {
guard let accountDetailsSubsequence = splitLine.last else { return }
- let splitAccountDetails = accountDetailsSubsequence.split(separator: ":", maxSplits: 2)
+ let splitAccountDetails = accountDetailsSubsequence.split(separator: "~", maxSplits: 2)
let user = String(splitAccountDetails[0])
let serverUrl = String(splitAccountDetails[1])
const auto accountUrl = account->url().toString();
const auto accountPassword = credentials->password();
+ // We cannot use colons as separators here due to "https://" in the url
const auto message = QString(QStringLiteral("ACCOUNT_DETAILS:") +
- accountUser + ":" +
- accountUrl + ":" +
+ accountUser + "~" +
+ accountUrl + "~" +
accountPassword);
sendMessage(message);
}