提交的内容
This commit is contained in:
7
vendor/rmccue/requests/src/Iri.php
vendored
Executable file → Normal file
7
vendor/rmccue/requests/src/Iri.php
vendored
Executable file → Normal file
@ -395,11 +395,11 @@ class Iri {
|
||||
// preceding "/" (if any) from the output buffer; otherwise,
|
||||
elseif (strpos($input, '/../') === 0) {
|
||||
$input = substr($input, 3);
|
||||
$output = substr_replace($output, '', strrpos($output, '/'));
|
||||
$output = substr_replace($output, '', (strrpos($output, '/') ?: 0));
|
||||
}
|
||||
elseif ($input === '/..') {
|
||||
$input = '/';
|
||||
$output = substr_replace($output, '', strrpos($output, '/'));
|
||||
$output = substr_replace($output, '', (strrpos($output, '/') ?: 0));
|
||||
}
|
||||
// D: if the input buffer consists only of "." or "..", then remove
|
||||
// that from the input buffer; otherwise,
|
||||
@ -824,7 +824,8 @@ class Iri {
|
||||
else {
|
||||
$iuserinfo = null;
|
||||
}
|
||||
if (($port_start = strpos($remaining, ':', strpos($remaining, ']'))) !== false) {
|
||||
|
||||
if (($port_start = strpos($remaining, ':', (strpos($remaining, ']') ?: 0))) !== false) {
|
||||
$port = substr($remaining, $port_start + 1);
|
||||
if ($port === false || $port === '') {
|
||||
$port = null;
|
||||
|
||||
Reference in New Issue
Block a user