mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-28 22:55:05 +02:00
fix: various fixes (#3745)
This commit is contained in:
parent
382648fc22
commit
44fb2c98bc
3 changed files with 16 additions and 11 deletions
|
@ -57,7 +57,7 @@ class CVEDetailsBridge extends BridgeAbstract
|
|||
$content = $tr->find('.cvesummarylong', 0)->innertext;
|
||||
$cweList = $detailHtml->find('h2', 2)->next_sibling();
|
||||
foreach ($cweList->find('li') as $li) {
|
||||
$cweWithDescription = $li->find('a', 0)->innertext;
|
||||
$cweWithDescription = $li->find('a', 0)->innertext ?? '';
|
||||
|
||||
if (preg_match('/CWE-(\d+)/', $cweWithDescription, $cwe)) {
|
||||
$categories[] = 'CWE-' . $cwe[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue