Fix incorrect db name for nextcloud command line client.
authoralex-z <blackslayer4@gmail.com>
Fri, 24 Sep 2021 10:33:01 +0000 (12:33 +0200)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Mon, 27 Sep 2021 08:13:29 +0000 (08:13 +0000)
Signed-off-by: alex-z <blackslayer4@gmail.com>
src/cmd/cmd.cpp

index da092807b10bf790403849ddcec7765b0d4fa79b..38e8d7091ffa2c329060a07d06690b3b0f34547a 100644 (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('/') ? options.target_url.chopped(1) : options.target_url);
 
     // Order of retrieval attempt (later attempts override earlier ones):
     // 1. From URL