Linux server.a-j.media 5.14.0-570.44.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 17 10:32:11 EDT 2025 x86_64
Apache
75.119.137.219
Cant read /etc/named.conf
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clwpos
/
user
/
website_check
/
__pycache__
/
[
drwxr-xr-x
]
[ HOME ]
Exec
Submit
File Name : errors.cpython-311.opt-1.pyc
� CI�Y�Nh^� �X � d dl Z d dlmZ d dlmZ d dlmZ dZd� Z dZ G d� d e� � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )� N)�urlsplit)�gettext)� WposError)�"�<�>c � � � t � t � � sdS t d� � D � � � � rdS t � � � j � � � }|dvrdS t � fd�t D � � � � rdS � S )a� Validate a caller-supplied url shared between the HTML templates and the plain-text ``curl %(url)s`` fix_tip. The same value feeds an HTML sink (the anchor in MESSAGE_TEMPLATE) and a plain-text sink (the curl fix_tip), so it must not be html-escaped: that would corrupt a legitimate url (e.g. ``?a=1&b=2`` -> ``?a=1&b=2``) in the copy-pasteable command. Instead validate-and-reject: keep the url byte-for-byte when its scheme is http/https and it contains no attribute/tag-breaking characters; otherwise drop it to an empty string. A scheme-validated url with no breaking chars is safe in the HTML anchor (``&`` alone cannot break an attribute or inject script) and correct in the curl command. � c 3 � K � | ]>}|� � � p%t |� � d k pt |� � dk V � �?dS )� � N)�isspace�ord)�.0�chs �&py/clwpos/user/website_check/errors.py� <genexpr>z_safe_url.<locals>.<genexpr>. sH � � � � K� K��2�:�:�<�<�<�3�r�7�7�T�>�<�S��W�W��_� K� K� K� K� K� K� )�http�httpsc 3 � �K � | ]}|�v V � � d S )N� )r r �urls �r r z_safe_url.<locals>.<genexpr>3 s'