# HG changeset patch # User Ingo Weinzierl # Date 1328698463 0 # Node ID d69d8dea78dcd4d171f21cd4872ce83a3bb8654d # Parent 504f53de1581e9248a5c4bc79151087749c60e10 Be more merciful for building the URL for the user-wms. flys-artifacts/trunk@3962 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 504f53de1581 -r d69d8dea78dc flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Feb 08 10:26:21 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Feb 08 10:54:23 2012 +0000 @@ -1,3 +1,9 @@ +2012-02-08 Ingo Weinzierl + + * src/main/java/de/intevation/flys/utils/FLYSUtils.java: Add a "/" to the + URL of the user wms if the URL configured in conf.xml doesn't end with + a "/". + 2012-02-08 Felix Wolfsteller Fix flys/issue472. diff -r 504f53de1581 -r d69d8dea78dc flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java --- a/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java Wed Feb 08 10:26:21 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java Wed Feb 08 10:54:23 2012 +0000 @@ -639,7 +639,7 @@ */ public static String getUserWMSUrl(String artifactId) { String url = getXPathString(XPATH_MAPSERVER_URL); - url = url + "user-wms"; + url = url.endsWith("/") ? url + "user-wms" : url + "/" + "user-wms"; return url; }