Skip to content

Escape addJS js code by using createStringObject#71

Merged
claird merged 1 commit intoclaird:masterfrom
SnirBroshi:bugfix/addjs-escaping
Jun 21, 2020
Merged

Escape addJS js code by using createStringObject#71
claird merged 1 commit intoclaird:masterfrom
SnirBroshi:bugfix/addjs-escaping

Conversation

@SnirBroshi
Copy link
Copy Markdown

@SnirBroshi SnirBroshi commented May 2, 2020

PdfFileWriter.addJS used NameObject('(%s)' % code) instead of using createStringObject,
which means the code wasn't escaped.

Fixes #69

@SnirBroshi SnirBroshi changed the title escape addJS js code by using createStringObject Escape addJS js code by using createStringObject May 2, 2020
@claird claird merged commit 795e2fe into claird:master Jun 21, 2020
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.

addJS doesn't escape the JS code

2 participants