Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.140.254.100
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
league /
commonmark /
src /
Util /
Delete
Unzip
Name
Size
Permission
Date
Action
ArrayCollection.php
8.11
KB
-rw-r--r--
2020-11-17 16:24
Configuration.php
2.54
KB
-rw-r--r--
2020-11-17 16:24
ConfigurationAwareInterface.php
568
B
-rw-r--r--
2020-11-17 16:24
ConfigurationInterface.php
1.34
KB
-rw-r--r--
2020-11-17 16:24
Html5Entities.php
106.24
KB
-rw-r--r--
2020-11-17 16:24
Html5EntityDecoder.php
1.59
KB
-rw-r--r--
2020-11-17 16:24
LinkParserHelper.php
3.31
KB
-rw-r--r--
2020-11-17 16:24
PrioritizedList.php
1.52
KB
-rw-r--r--
2020-11-17 16:24
RegexHelper.php
8.88
KB
-rw-r--r--
2020-11-17 16:24
UrlEncoder.php
2.44
KB
-rw-r--r--
2020-11-17 16:24
Xml.php
713
B
-rw-r--r--
2020-11-17 16:24
Save
Rename
<?php /* * This file is part of the league/commonmark package. * * (c) Colin O'Dell <colinodell@gmail.com> * * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js) * - (c) John MacFarlane * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace League\CommonMark\Util; use League\CommonMark\Exception\UnexpectedEncodingException; final class UrlEncoder { /** @var string[] */ private static $encodeCache = ['%00', '%01', '%02', '%03', '%04', '%05', '%06', '%07', '%08', '%09', '%0A', '%0B', '%0C', '%0D', '%0E', '%0F', '%10', '%11', '%12', '%13', '%14', '%15', '%16', '%17', '%18', '%19', '%1A', '%1B', '%1C', '%1D', '%1E', '%1F', '%20', '!', '%22', '#', '$', '%25', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '%3C', '=', '%3E', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '%5B', '%5C', '%5D', '%5E', '_', '%60', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '%7B', '%7C', '%7D', '~', '%7F']; public static function unescapeAndEncode(string $uri): string { // Optimization: if the URL only includes characters we know will be kept as-is, then just return the URL as-is. if (\preg_match('/^[A-Za-z0-9~!@#$&*()\-_=+;:,.\/?]+$/', $uri)) { return $uri; } $result = ''; $chars = \preg_split('//u', $uri, -1, \PREG_SPLIT_NO_EMPTY); if (!\is_array($chars) || !\mb_check_encoding($uri, 'UTF-8')) { throw new UnexpectedEncodingException('Unexpected encoding - UTF-8 or ASCII was expected'); } $l = \count($chars); for ($i = 0; $i < $l; $i++) { $code = $chars[$i]; if ($code === '%' && $i + 2 < $l) { if (\preg_match('/^[0-9a-f]{2}$/i', $chars[$i + 1] . $chars[$i + 2]) === 1) { $result .= '%' . $chars[$i + 1] . $chars[$i + 2]; $i += 2; continue; } } if (\ord($code) < 128) { $result .= self::$encodeCache[\ord($code)]; continue; } $result .= \rawurlencode($code); } return $result; } }