Skip to content

Commit 38bd0e5

Browse files
committed
Select next div sibling for fixed version parsing
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 91cb47e commit 38bd0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vulnerabilities/importers/apache_tomcat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def extract_tomcat_advisory_data_from_page(apache_tomcat_advisory_html):
234234
# Each group of fixed-version-related data is contained in a div that immediately follows the h3 element, e.g.,
235235
# <h3 id="Fixed_in_Apache_Tomcat_8.5.8"><span class="pull-right">8 November 2016</span> Fixed in Apache Tomcat 8.5.8</h3>
236236
# <div class="text"> ... <div>
237-
fixed_version_paras = fixed_version_heading.find_next_sibling()
237+
fixed_version_paras = fixed_version_heading.find_next_sibling("div")
238238

239239
# See https://tomcat.apache.org/security-impact.html for scoring.
240240
# Each advisory section starts with a <p> element,

0 commit comments

Comments
 (0)