From 516861e0aedca3d2b0053a84e83d44db85bfe66d Mon Sep 17 00:00:00 2001 From: Soxoj Date: Sun, 31 Oct 2021 21:38:32 +0300 Subject: [PATCH] Some security fixes Added link to Patreon --- .github/FUNDING.yml | 3 +++ requirements.txt | 2 +- tests/test_utils.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..fcda0d3 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +patreon: soxoj diff --git a/requirements.txt b/requirements.txt index daad195..60bcc92 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ aiodns==3.0.0 -aiohttp==3.7.4.post0 +aiohttp==3.7.4 aiohttp-socks==0.5.5 arabic-reshaper==2.1.1 async-timeout==3.0.1 diff --git a/tests/test_utils.py b/tests/test_utils.py index fb6252e..0ff7801 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -73,7 +73,7 @@ def test_url_extract_main_part(): ['/', ''], ] - url_regexp = re.compile('^https?://(www.)?flickr.com/photos/(.+?)$') + url_regexp = re.compile(r'^https?://(www\.)?flickr.com/photos/(.+?)$') # combine parts variations for url_parts in itertools.product(*parts): url = ''.join(url_parts)