Skip to content

v0.2.48..v0.2.49 changeset ChangesetApplyCmd.cpp

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp b/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp
index e4e57ad..435f1a5 100644
--- a/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/cmd/ChangesetApplyCmd.cpp
@@ -88,7 +88,7 @@ public:
     {
       //  Get the endpoint URL
       const QString urlStr = args[args.size() - 1];
-      if (!urlStr.toLower().startsWith("http://") || !urlStr.toLower().startsWith("https://"))
+      if (!urlStr.toLower().startsWith("http://") && !urlStr.toLower().startsWith("https://"))
       {
         throw IllegalArgumentException(
           QString("XML changesets must be written to an OpenStreetMap compatible web service. ") +
Clone this wiki locally