diff --git a/CVE-2021-32838.patch b/CVE-2021-32838.patch deleted file mode 100644 index 4c41c54355396f638607a795b6887c945ce24c4c..0000000000000000000000000000000000000000 --- a/CVE-2021-32838.patch +++ /dev/null @@ -1,22 +0,0 @@ -From bab31e085f355dd73858fd3715f7ed71849656da Mon Sep 17 00:00:00 2001 -From: ziirish -Date: Wed, 1 Sep 2021 21:53:02 +0200 -Subject: [PATCH] optimize email regex (credits: @kevinbackhouse, fix: #372) - ---- - flask_restx/inputs.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/flask_restx/inputs.py b/flask_restx/inputs.py -index b05532f3..9c76d8a0 100644 ---- a/flask_restx/inputs.py -+++ b/flask_restx/inputs.py -@@ -48,7 +48,7 @@ def my_type(value): - - - email_regex = re.compile( -- r"^" "(?P[^@]*[^@.])" r"@" r"(?P[^@]+(?:\.[^@]+)*)" r"$", -+ r"^" "(?P[^@]*[^@.])" r"@" r"(?P[^@\.]+(?:\.[^@\.]+)*)" r"$", - re.IGNORECASE, - ) - diff --git a/flask-restx-0.2.0.tar.gz b/flask-restx-0.2.0.tar.gz deleted file mode 100644 index 97902315d0d85706eb60212b8a48e970aebbaef2..0000000000000000000000000000000000000000 Binary files a/flask-restx-0.2.0.tar.gz and /dev/null differ diff --git a/flask-restx-0.5.1.tar.gz b/flask-restx-0.5.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..78fe22ecfa99d6937a179cebaa014d7808112ca5 Binary files /dev/null and b/flask-restx-0.5.1.tar.gz differ diff --git a/python-flask-restx.spec b/python-flask-restx.spec index a1b4f3ba4fc054fb64f4aaeb94e322044b4ec5c7..1149c97e2acf2fd908802e88061f5884e2b02ac3 100644 --- a/python-flask-restx.spec +++ b/python-flask-restx.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-flask-restx -Version: 0.2.0 -Release: 2 +Version: 0.5.1 +Release: 1 Summary: Fully featured framework for fast, easy and documented API development with Flask License: BSD-3-Clause URL: https://github.com/python-restx/flask-restx -Source0: https://files.pythonhosted.org/packages/5f/6e/f71db883f6228e09e7e8c7bf5f1068c0a853db992bcaebd105005b70c959/flask-restx-%{version}.tar.gz -Patch1: CVE-2021-32838.patch +Source0: https://files.pythonhosted.org/packages/71/f2/ffca4b36b2888d3445e3ee9494cb8efe2af0d8ac96feb0f08a0fb04304b9/flask-restx-%{version}.tar.gz BuildArch: noarch Requires: python3-aniso8601 @@ -74,6 +73,9 @@ mv %{buildroot}/doclist.lst . %{_pkgdocdir} %changelog +* Fri Oct 21 2022 Ge Wang - 0.5.1-1 +- Upgrade to version 0.5.1 + * Sat Oct 9 2021 liwu - 0.2.0-2 * Fix CVE-2021-32838