| @@ 518-521 (lines=4) @@ | ||
| 515 | ||
| 516 | // Split authority into userinfo and host |
|
| 517 | // (use last @ to ignore unescaped @ symbols) |
|
| 518 | if (false !== ($pos = strrpos($authority, '@'))) { |
|
| 519 | $this->userinfo = substr($authority, 0, $pos); |
|
| 520 | $authority = substr($authority, $pos + 1); |
|
| 521 | } |
|
| 522 | ||
| 523 | // Split authority into host and port |
|
| 524 | $hostEnd = 0; |
|
| @@ 585-589 (lines=5) @@ | ||
| 582 | $input = substr($input, 3); |
|
| 583 | } |
|
| 584 | ||
| 585 | if (false !== ($end = strrpos($output, '/'))) { |
|
| 586 | $output = substr($output, 0, $end); |
|
| 587 | } else { |
|
| 588 | $output = ''; |
|
| 589 | } |
|
| 590 | } elseif (('..' === $input) || ('.' === $input)) { |
|
| 591 | $input = ''; |
|
| 592 | } else { |
|