]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - src/tim/prune/gui/map/MapSource.java
Allow to use maps with custom format
[GpsPrune.git] / src / tim / prune / gui / map / MapSource.java
index aa7127dee7020a70c9adb42f3a077e99075b6b8b..69a372b1cb4e36328298cb3aefcfcebafd8eedd9 100644 (file)
@@ -100,7 +100,7 @@ public abstract class MapSource
                        urlstr = "http://" + urlstr;
                }
                // check trailing /
-               if (!urlstr.endsWith("/")) {
+               if (!urlstr.endsWith("/") && !urlstr.contains("?")) {
                        urlstr = urlstr + "/";
                }
                // Validate current url, return null if not ok