1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-09-01 04:11:54 +02:00

fix: various fixes (#3745)

This commit is contained in:
Dag
2023-10-13 00:26:11 +02:00
committed by GitHub
parent 382648fc22
commit 44fb2c98bc
3 changed files with 16 additions and 11 deletions

View File

@@ -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];