| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/werkzeug/sansio/__pycache__/ |
Upload File : |
�
Tg� �
� � d dl ZddlmZ ddlmZ ddlmZ ddlmZ dej e
dej e
d efd
�Z
dde
dej e
d
ej ej e
ej e f dej ej e
d e
f
d�Z dde
de
dej e
dej e
dej e d e
fd�Z ddej e
df dej e
df d ej e fd�ZdS )� N� )�_encode_idna)�
SecurityError)�
uri_to_iri)� url_quote�hostname�trusted_list�returnc �z � | sdS t |t � � r|g}dt dt fd�} || � � }n# t $ r Y dS w xY w|D ]k}|� d� � r
|dd� }d}nd} ||� � }n# t $ r Y dS w xY w||k r dS |r|� d |z � � r dS �ldS )
z�Check if a host matches a list of trusted names.
:param hostname: The name to check.
:param trusted_list: A list of valid names to match. If a name
starts with a dot it will match all subdomains.
.. versionadded:: 0.9
Fr r
c �` � d| v r| � dd� � d } t | � � S )N�:� r )�rsplitr )r s �7/usr/lib/python3/dist-packages/werkzeug/sansio/utils.py�
_normalizez#host_is_trusted.<locals>._normalize s1 � ��(�?�?����s�A�.�.�q�1�H��H�%�%�%� �.r NT� .)�
isinstance�str�bytes�UnicodeError�
startswith�endswith)r r r �hostname_bytes�ref�suffix_match� ref_bytess r �host_is_trustedr s= � � � ��u��,��$�$� &�$�~��&�S� &�U� &� &� &� &��#��H�-�-����� � � ��u�u����� � � ���>�>�#��� !��a�b�b�'�C��L�L� �L� �"�
�3���I�I��� � � ��5�5�5� ���� ��&�&��4�4�� �N�3�3�D�9�4D�E�E� ��4�4���5s! �<