Skip to content

Commit 3b0bfae

Browse files
authored
Merge pull request #5697 from LibreSign/fix/validate-return-of-poppler
fix: valdiate return of poppler
2 parents 8383624 + 96faa93 commit 3b0bfae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Handler/SignEngine/Pkcs12Handler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ private function parseDistinguishedNameWithMultipleValues(string $dn): array {
311311

312312
foreach ($pairs as $pair) {
313313
[$key, $value] = explode('=', $pair, 2);
314+
if (empty($key) || empty($value)) {
315+
throw new LibresignException($this->l10n->t('Invalid value: %s.', ['Signer full Distinguished Name: ' . $pair]));
316+
}
314317
$key = trim($key);
315318
$value = trim($value);
316319
$value = trim($value, '"');

0 commit comments

Comments
 (0)