You are here

private function Uri::filterUserInfoComponent in Auth0 Single Sign On 8.2

Parameters

string $component:

Return value

string

Throws

\InvalidArgumentException If the user info is invalid.

2 calls to Uri::filterUserInfoComponent()
Uri::applyParts in vendor/guzzlehttp/psr7/src/Uri.php
Apply parse_url parts to a URI.
Uri::withUserInfo in vendor/guzzlehttp/psr7/src/Uri.php
Return an instance with the specified user information.

File

vendor/guzzlehttp/psr7/src/Uri.php, line 588

Class

Uri
PSR-7 URI implementation.

Namespace

GuzzleHttp\Psr7

Code

private function filterUserInfoComponent($component) {
  if (!is_string($component)) {
    throw new \InvalidArgumentException('User info must be a string');
  }
  return preg_replace_callback('/(?:[^%' . self::$charUnreserved . self::$charSubDelims . ']+|%(?![A-Fa-f0-9]{2}))/', [
    $this,
    'rawurlencodeMatchZero',
  ], $component);
}