aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-03-04 15:22:01 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-03-04 15:22:01 +0100
commitadf4183e807cc00c8d824fcdd9476ec6ca7a789e (patch)
tree39d959eef90525a9fd443886150a90db3a012dc1 /pdf-as-web
parentdf68bda01aee151df006900accd418ad06b303d7 (diff)
downloadpdf-as-4-adf4183e807cc00c8d824fcdd9476ec6ca7a789e.tar.gz
pdf-as-4-adf4183e807cc00c8d824fcdd9476ec6ca7a789e.tar.bz2
pdf-as-4-adf4183e807cc00c8d824fcdd9476ec6ca7a789e.zip
Fixed JSON error for multiple signatures in verification
Diffstat (limited to 'pdf-as-web')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
index c2d0aeb9..18da6b3e 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/helper/VerifyResultJSONEncoder.java
@@ -66,6 +66,10 @@ public class VerifyResultJSONEncoder implements VerifyResultEncoder {
}
sb.append("}");
+
+ if(i < results.size() - 1) {
+ sb.append(",");
+ }
}
sb.append("]}");