Skip to content

Commit acc482a

Browse files
committed
Prevent error when string does not contain ":"
1 parent c4b6c3c commit acc482a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Core/JavaArchive.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ public function __construct(string $jarFile, array $options = [])
110110
if (empty($attribute)) {
111111
continue;
112112
}
113+
if (!strpos($attribute, ':')) {
114+
continue;
115+
}
113116
[$name, $value] = explode(':', $attribute);
114117
$this->manifestData[strtolower($name)] = trim($value);
115118
}

0 commit comments

Comments
 (0)