Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cool#9992 doc sign: fix handling of saveas options containing spaces
Trying to create signed PDFs during ODT->PDF conversion, a signature is created, but it's not valid. The first trouble noticed while investigating is that the saveas option we get is like this: debug:666:660: doc_saveAs: pFilterOptions is '{"SignPDF":{"type":"boolean","value":"true"},"SignCertificateCaPem":{"type":"string","value":"-----BEGINCERTIFICATE----- While this should be '-----BEGIN CERTIFICATE-----', since the syntax is "saveas ... [options=<options>]". Fix the problem in ChildSession::saveAs(), where a space was lost while "saveas ... options=foo bar" was tokenized as "saveas", "...", "options=foo" and "bar", and later we constructed <options> as "foobar", not "foo bar". Signed-off-by: Miklos Vajna <vmiklos@collabora.com> Change-Id: Ibadcb3218d8776191193ca13788cfca4a8d1e11d
- Loading branch information