Skip to content
Snippets Groups Projects
Commit 29bf4079 authored by Robert Butora's avatar Robert Butora
Browse files

fixes bug ('&' must be escaped in xml: '&')

parent b76b3030
No related branches found
No related tags found
No related merge requests found
...@@ -373,10 +373,10 @@ final class XmlSerializer ...@@ -373,10 +373,10 @@ final class XmlSerializer
xml.append("<URL type=\"file\">" + access.accessFileUrl + "</URL>"); xml.append("<URL type=\"file\">" + access.accessFileUrl + "</URL>");
if(access.accessCutoutUrl != null) if(access.accessCutoutUrl != null)
xml.append("<URL type=\"cutout\">" + access.accessCutoutUrl + "</URL>"); xml.append("<URL type=\"cutout\">" + access.accessCutoutUrl.replaceAll("&","&amp;") + "</URL>");
if(access.accessMosaicUrl != null) if(access.accessMosaicUrl != null)
xml.append("<URL type=\"mosaic\">" + access.accessMosaicUrl + "</URL>"); xml.append("<URL type=\"mosaic\">" + access.accessMosaicUrl.replaceAll("&","&amp;") + "</URL>");
xml.append("</Access>"); xml.append("</Access>");
......
...@@ -389,11 +389,11 @@ public class FormatResponseFilter implements Filter ...@@ -389,11 +389,11 @@ public class FormatResponseFilter implements Filter
if(coord.band != null) if(coord.band != null)
{ {
sb.append("&amp;" + coord.band.toString()); sb.append("&" + coord.band.toString());
//sb.append("&amp;BANDSYS=" + coord.band.system.toString() ); //sb.append("&BANDSYS=" + coord.band.system.toString() );
} }
sb.append("&amp;ID="); // FIXME id-value will be added in FormatResponseFilter sb.append("&ID="); // FIXME id-value will be added in FormatResponseFilter
return sb.toString(); return sb.toString();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment