escape for xml the material type key and flight data type keys.
This commit is contained in:
parent
b9944d1803
commit
59ef1b0888
@ -458,7 +458,7 @@ public class OpenRocketSaver extends RocketSaver {
|
|||||||
for (int i = 0; i < types.length; i++) {
|
for (int i = 0; i < types.length; i++) {
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
sb.append(",");
|
sb.append(",");
|
||||||
sb.append(types[i].getKey());
|
sb.append(escapeXML(types[i].getKey()));
|
||||||
}
|
}
|
||||||
sb.append("\" types=\"");
|
sb.append("\" types=\"");
|
||||||
for (int i = 0; i < types.length; i++) {
|
for (int i = 0; i < types.length; i++) {
|
||||||
|
@ -108,7 +108,7 @@ public class RocketComponentSaver {
|
|||||||
throw new BugException("Unknown material type: " + mat.getType());
|
throw new BugException("Unknown material type: " + mat.getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
return str + " density=\"" + mat.getDensity() + "\" key=\"" + mat.getKey() + "\">" + RocketSaver.escapeXML(mat.getName()) + "</" + tag + ">";
|
return str + " density=\"" + mat.getDensity() + "\" key=\"" + RocketSaver.escapeXML(mat.getKey()) + "\">" + RocketSaver.escapeXML(mat.getName()) + "</" + tag + ">";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user