🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-24 01:34:08 | PHP 8.2.31
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clcommon
/
public_hooks
/
lib
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/lib/__pycache__
🔄 Refresh
✏️
Editing: helpers.cpython-311.pyc
Read Only
� �A"�g�$�� �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl mZ d dlm Z ej e� � Zd� ZdZ ej d� � Zd� Zed � � � Zd � ZdS )� N)�StringIO)�contextmanager)�wrapsc �p � t | � � � dd� � � dd� � S )z5Strip control characters from a value before logging.� z\n� z\r)�str�replace��values ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.40-1.el9.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/public_hooks/lib/helpers.py�_sanitize_log_valuer s. � ��u�:�:���d�E�*�*�2�2�4��?�?�?� z&/usr/share/cloudlinux/hooks/listeners/z6\A[^\s/\\;&|`$()<>'\"!*?\[\]{}~\x00-\x1f\x7f]{1,255}\Zc � � t | t � � rt � | � � st j d| �d�� � �| S )u� argparse type-callback for hosting account / panel-owner names. Used by post_modify_user.py, pre_modify_user.py, post_modify_admin.py, and post_modify_domain.py to reject values that contain shell metacharacters, path separators, control chars, or whitespace before dispatching to listener plugins. Accepts any Unicode string of length 1..255 that does not contain a forbidden character — see `_VALID_NAME_RE` above for the full list. z invalid name z;: contains forbidden character or has length outside 1..255)� isinstancer �_VALID_NAME_RE� fullmatch�argparse�ArgumentTypeErrorr s r � valid_namer : s] � � �e�S�!�!� &��)A�)A�%�)H�)H� &��(� %�E� %� %� %�&� &� &� �Lr c # � K � t j }t j } | p t � � t _ |p t � � t _ d V � |t _ |t _ d S # |t _ |t _ w xY w)N)�sys�stdout�stderrr )�stdo�stder r s r �capture_outputr L sq � � � � �Z�F� �Z�F���'�X�Z�Z�� ��'�X�Z�Z�� � ������ ��� � � �� �� ��� ����s �8A. �.Bc �J � � t � � � � fd�� � }d|_ |S )a, Magic decorator that calls all subclass methods that override base decorated one. Requirements: - subclass must be defined in .py file in LISTENERS_DIRECTORY - subclass must NOT start with '_' char - subclass must override base event method (the one with '@hook_method') c �b �� | j � � � D �]�}t j � t j |� � j � � }t j � t � � t j � |� � k r#t � d|t |� � ��|j � d� � r��t |� � �j � � }t |dd� � r(t � d�j |j � � ��t � d�j |j � � t# j � � }t% � � t% � � }} t'