private function Uri::filterQueryAndFragment in Auth0 Single Sign On 8.2
Filters the query string or fragment of a URI.
Parameters
string $str:
Return value
string
Throws
\InvalidArgumentException If the query or fragment is invalid.
3 calls to Uri::filterQueryAndFragment()
- Uri::applyParts in vendor/
guzzlehttp/ psr7/ src/ Uri.php - Apply parse_url parts to a URI.
- Uri::withFragment in vendor/
guzzlehttp/ psr7/ src/ Uri.php - Return an instance with the specified URI fragment.
- Uri::withQuery in vendor/
guzzlehttp/ psr7/ src/ Uri.php - Return an instance with the specified query string.
File
- vendor/
guzzlehttp/ psr7/ src/ Uri.php, line 719
Class
- Uri
- PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
private function filterQueryAndFragment($str) {
if (!is_string($str)) {
throw new \InvalidArgumentException('Query and fragment must be a string');
}
return preg_replace_callback('/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\\/\\?]++|%(?![A-Fa-f0-9]{2}))/', [
$this,
'rawurlencodeMatchZero',
], $str);
}