IP : 18.218.200.164Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
lib64/
python3.8/
__pycache__/
mailcap.cpython-38.opt-2.pyc/
/
U
e5dk#�@s�ddlZddlZddlZddgZdd�Ze�d�jZGdd�de�Z d d�Z d d�Zdd �Zdd�Z dd�Zdd�Zddgfdd�Zd"dd�Zgfdd�Zdd�Zdd�Zdd �Zed!kr�e�dS)#�N�getcaps� findmatchcCsd|krd|dfSdSdS)N�linenor)�r�)�entryrr�/usr/lib64/python3.8/mailcap.py�lineno_sort_key sr z[^\xa1-\U0010FFFF\w@+=:,./-]c@seZdZdS)�UnsafeMailcapInputN)�__name__� __module__�__qualname__rrrrr sr c Cs�i}d}t�D]~}zt|d�}Wntk r8YqYnX|�t||�\}}W5QRX|��D]*\}}||krz|||<q`|||||<q`q|S)Nr�r)�listmailcapfiles�open�OSError�_readmailcapfile�items)�capsrZmailcap�fpZmorecaps�key�valuerrrrs
r9r7z /dev/nullc Cs�t|�r"d|f}t�|t�dSt|||�}|D]`}d|krlt|d||�}|dkrXq2|rlt�|�dkrlq2t|||||�} | dk r2| |fSq2dS)NzHRefusing to use mailcap with filename %r. Use a safe temporary filename.r6�testr)�_find_unsafer r!r �lookup�substr�system) r�MIMEtyper�filename�plist�msg�entries�erC�commandrrrr�s cslg}||kr|||}|�d�}|dd}||krB|||}�dk r\�fdd�|D�}t|td�}|S)Nr)rz/*csg|]}�|kr|�qSrr)�.0rM�rrr� <listcomp>�szlookup.<locals>.<listcomp>rP)r�sortedr )rrHrrLZ MIMEtypesrrPrrE�s rEcCsRd}dt|�}}||k�rN||}|d}|dkr^|dkrT|||d�}|d}||}q||}|d}|dkr�||}q|dkr�||}q|dkr�t|�r�d|f}t�|t�dS||}q|d k�r@|} ||kr�||d kr�|d}q�|| |�} |d}t| |�}t|��r6d|| f}t�|t�dS||}q|d|}q|S)Nr&rr�%r@�s�tz9Refusing to substitute MIME type %r into a shell command.�{�}z=Refusing to substitute parameter %r (%s) into a shell command)r.rDr r!r � findparam)r=rHrIrJ�resr;r<rBrKrA�nameZparamrrrrF�sH