Skip to content

fix: XML-encode company name in app.xml - #4

Merged
MBuelowius merged 1 commit into
masterfrom
fix/company-xml-encode-1427
Jun 24, 2026
Merged

fix: XML-encode company name in app.xml#4
MBuelowius merged 1 commit into
masterfrom
fix/company-xml-encode-1427

Conversation

@MBuelowius

@MBuelowius MBuelowius commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Original author: Heikki Hulkko (@hhulkko) — adopted from upstream gitbrent/PptxGenJS#1427 (MIT, src change only; demo-fixture change omitted). Credited via Co-Authored-By trailer.

An unescaped company name containing &, <, or > produced invalid XML in docProps/app.xml and corrupted the file. Now run through encodeXmlEntities like other user-supplied strings.

tsc --noEmit clean. dist/ not rebuilt here.

Adopts upstream PR gitbrent#1427 (src change only). An unescaped
company name containing &, <, or > produced invalid XML in docProps/app.xml
and corrupted the file. Run it through encodeXmlEntities like other
user-supplied strings.

Original work by Heikki Hulkko (@hhulkko) in gitbrent#1427 (MIT).

Co-Authored-By: Heikki Hulkko <heikki.hulkko@iki.fi>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MBuelowius
MBuelowius force-pushed the fix/company-xml-encode-1427 branch from 392d114 to 8c8dcfa Compare June 23, 2026 13:44
@MBuelowius
MBuelowius merged commit 30f5c8e into master Jun 24, 2026
@MBuelowius
MBuelowius deleted the fix/company-xml-encode-1427 branch June 24, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant