Merge pull request #216 from alexguirre/fix/clip-hash-escaping

Escape ClipBase.Hash when writing XML
This commit is contained in:
dexyfex 2023-09-03 22:28:20 +10:00 committed by GitHub
commit 11591fa008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3151,7 +3151,7 @@ namespace CodeWalker.GameFiles
public virtual void WriteXml(StringBuilder sb, int indent)
{
YcdXml.StringTag(sb, indent, "Hash", YcdXml.HashString(Hash));
YcdXml.StringTag(sb, indent, "Hash", MetaXml.XmlEscape(YcdXml.HashString(Hash)));
YcdXml.StringTag(sb, indent, "Name", MetaXml.XmlEscape(Name));
YcdXml.ValueTag(sb, indent, "Type", Type.ToString());
YcdXml.ValueTag(sb, indent, "Unknown30", Unknown_30h.ToString());