We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents abd3a2e + a73360c commit fa302eeCopy full SHA for fa302ee
1 file changed
src/Sign/JSignService.php
@@ -62,10 +62,11 @@ public function getVersion(JSignParam $params)
62
63
$command = "$java -jar $jSignPdf --version 2>&1";
64
\exec($command, $output);
65
- if (empty($output) || strpos($output[0], 'version') === false) {
+ $lastRow = end($output);
66
+ if (empty($output) || strpos($lastRow, 'version') === false) {
67
return '';
68
}
- return explode('version ', $output[0])[1];
69
+ return explode('version ', $lastRow)[1];
70
71
72
private function validation(JSignParam $params)
0 commit comments