From 6828628814654aec80fb5a9dc4e516a18dd7f071 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Wed, 29 Jul 2026 01:24:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(url=5Fsecurity):=20=E7=BB=9F=E4=B8=80import?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E9=A3=8E=E6=A0=BC=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?lint=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/shared/url_security.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/shared/url_security.py b/packages/shared/url_security.py index f7a9b5e6f..70ec9a8ff 100755 --- a/packages/shared/url_security.py +++ b/packages/shared/url_security.py @@ -22,16 +22,14 @@ import urllib.error import urllib.request from urllib.parse import urljoin -from packages.domain.url_security import ( - ALLOWED_AUDIO_MIME_TYPES, - ALLOWED_IMAGE_MIME_TYPES, -) +from packages.domain.url_security import ALLOWED_AUDIO_MIME_TYPES as _allowed_audio_base +from packages.domain.url_security import ALLOWED_IMAGE_MIME_TYPES as _allowed_image_base from packages.domain.url_security import ALLOWED_PORTS as _allowed_ports_base from packages.domain.url_security import ALLOWED_SCHEMES as _allowed_schemes_base from packages.domain.url_security import ( ALLOWED_VIDEO_MIME_TYPES, MAGIC_NUMBERS, - MAX_URL_LENGTH, + MAX_URL_LENGTH as _max_url_length_base, ) from packages.domain.url_security import UrlSecurityError as _UrlSecurityError_base from packages.domain.url_security import check_internal_hostname as _check_internal_hostname_base