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:
@@ -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];
|
||||
|
Reference in New Issue
Block a user