aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2016-07-04 16:00:30 +0000
committerGlenn Adams <gadams@apache.org>2016-07-04 16:00:30 +0000
commitdd20c66607917b37b8139f258d48ac26f8ec67f6 (patch)
treef008f9a1197a9febda1ed5451f77ae914fa53be5
parent7c20b1bac93b712db6caeb5152e496aea9cb9910 (diff)
downloadxmlgraphics-fop-dd20c66607917b37b8139f258d48ac26f8ec67f6.tar.gz
xmlgraphics-fop-dd20c66607917b37b8139f258d48ac26f8ec67f6.zip
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
-rw-r--r--fop-core/src/main/java/org/apache/fop/pdf/PDFUri.java2
1 files changed, 1 insertions, 1 deletions
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} */