Merge pull request #3832 from nextcloud/bugfix/incorrect-cmd-client-dbname

Fix incorrect db name for nextcloud command line client.
This commit is contained in:
Matthieu Gallien 2021-09-27 10:36:16 +02:00 committed by GitHub
commit c521ca0949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,7 +350,7 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
QUrl hostUrl = QUrl::fromUserInput(options.target_url);
QUrl hostUrl = QUrl::fromUserInput((options.target_url.endsWith(QLatin1Char('/')) || options.target_url.endsWith(QLatin1Char('\\'))) ? options.target_url.chopped(1) : options.target_url);
// Order of retrieval attempt (later attempts override earlier ones):
// 1. From URL