From dd20c66607917b37b8139f258d48ac26f8ec67f6 Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Mon, 4 Jul 2016 16:00:30 +0000 Subject: FOP-916: Handle external links in encrypted PDF. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1751326 13f79535-47bb-0310-9956-ffa450edef68 --- fop-core/src/main/java/org/apache/fop/pdf/PDFUri.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fop-core/src/main/java/org/apache/fop/pdf/PDFUri.java b/fop-core/src/main/java/org/apache/fop/pdf/PDFUri.java index b3d377ff1..a42b9c872 100644 --- a/fop-core/src/main/java/org/apache/fop/pdf/PDFUri.java +++ b/fop-core/src/main/java/org/apache/fop/pdf/PDFUri.java @@ -49,7 +49,7 @@ public class PDFUri extends PDFAction { } private String getDictString() { - return "<< /URI (" + uri + ")\n/S /URI >>"; + return "<< /URI (" + encodeString(uri) + ")\n/S /URI >>"; } /** {@inheritDoc} */ -- cgit v1.2.3