From f8f6fa8739c1a1cd6ad67c898765fed54a6b68fb Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:05:26 +0300 Subject: [PATCH] Update CVE URL --- sphinx/environment/__init__.py | 2 +- tests/test_markup/test_markup.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index 871810bfeff..c2aab6b767d 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -54,7 +54,7 @@ 'image_loading': 'link', 'embed_stylesheet': False, 'cloak_email_addresses': True, - 'cve_base_url': 'https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-', + 'cve_base_url': 'https://www.cve.org/CVERecord?id=CVE-', 'cve_references': None, 'cwe_base_url': 'https://cwe.mitre.org/data/definitions/', 'cwe_references': None, diff --git a/tests/test_markup/test_markup.py b/tests/test_markup/test_markup.py index 98052de2572..1a8a074151c 100644 --- a/tests/test_markup/test_markup.py +++ b/tests/test_markup/test_markup.py @@ -166,14 +166,14 @@ def get(name): ':cve:`2020-10735`', ( '
' + 'href="https://www.cve.org/CVERecord?id=CVE-2020-10735">' 'CVE 2020-10735
' ), ( '\\sphinxAtStartPar\n' '\\index{Common Vulnerabilities and Exposures@\\spxentry{Common Vulnerabilities and Exposures}' '!CVE 2020\\sphinxhyphen{}10735@\\spxentry{CVE 2020\\sphinxhyphen{}10735}}' - '\\sphinxhref{https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735}' + '\\sphinxhref{https://www.cve.org/CVERecord?id=CVE-2020-10735}' '{\\sphinxstylestrong{CVE 2020\\sphinxhyphen{}10735}}' ), ), @@ -183,14 +183,14 @@ def get(name): ':cve:`2020-10735#id1`', ( '' + 'href="https://www.cve.org/CVERecord?id=CVE-2020-10735#id1">' 'CVE 2020-10735#id1
' ), ( '\\sphinxAtStartPar\n' '\\index{Common Vulnerabilities and Exposures@\\spxentry{Common Vulnerabilities and Exposures}' '!CVE 2020\\sphinxhyphen{}10735\\#id1@\\spxentry{CVE 2020\\sphinxhyphen{}10735\\#id1}}' - '\\sphinxhref{https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735\\#id1}' + '\\sphinxhref{https://www.cve.org/CVERecord?id=CVE-2020-10735\\#id1}' '{\\sphinxstylestrong{CVE 2020\\sphinxhyphen{}10735\\#id1}}' ), ),