X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/guzzlehttp/psr7/src
opt
/
cpanel
/
ea-wappspector
/
vendor
/
guzzlehttp
/
psr7
/
src
/
??
..
??
AppendStream.php
(5.81 KB)
??
BufferStream.php
(3.14 KB)
??
CachingStream.php
(4.49 KB)
??
DroppingStream.php
(1.17 KB)
??
Exception
??
FnStream.php
(4.21 KB)
??
Header.php
(3.85 KB)
??
HttpFactory.php
(3 KB)
??
InflateStream.php
(1.38 KB)
??
LazyOpenStream.php
(1.06 KB)
??
LimitStream.php
(4.18 KB)
??
Message.php
(8.14 KB)
??
MessageTrait.php
(7.61 KB)
??
MimeType.php
(55.82 KB)
??
MultipartStream.php
(6.85 KB)
??
NoSeekStream.php
(524 B)
??
PumpStream.php
(4.49 KB)
??
Query.php
(3.95 KB)
??
Request.php
(3.81 KB)
??
Response.php
(4.79 KB)
??
Rfc7230.php
(661 B)
??
ServerRequest.php
(9.33 KB)
??
Stream.php
(7.21 KB)
??
StreamDecoratorTrait.php
(3.24 KB)
??
StreamWrapper.php
(4.53 KB)
??
UploadedFile.php
(4.98 KB)
??
Uri.php
(21.5 KB)
??
UriComparator.php
(1.12 KB)
??
UriNormalizer.php
(8.26 KB)
??
UriResolver.php
(8.38 KB)
??
Utils.php
(15.57 KB)
Editing: UriComparator.php
<?php declare(strict_types=1); namespace GuzzleHttp\Psr7; use Psr\Http\Message\UriInterface; /** * Provides methods to determine if a modified URL should be considered cross-origin. * * @author Graham Campbell */ final class UriComparator { /** * Determines if a modified URL should be considered cross-origin with * respect to an original URL. */ public static function isCrossOrigin(UriInterface $original, UriInterface $modified): bool { if (\strcasecmp($original->getHost(), $modified->getHost()) !== 0) { return true; } if ($original->getScheme() !== $modified->getScheme()) { return true; } if (self::computePort($original) !== self::computePort($modified)) { return true; } return false; } private static function computePort(UriInterface $uri): int { $port = $uri->getPort(); if (null !== $port) { return $port; } return 'https' === $uri->getScheme() ? 443 : 80; } private function __construct() { // cannot be instantiated } }
Upload File
Create Folder