private function Uri::filterQueryAndFragment in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/Uri.php \GuzzleHttp\Psr7\Uri::filterQueryAndFragment()
Filters the query string or fragment of a URI.
Parameters
$str:
Return value
string
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 586
Class
- Uri
- Basic PSR-7 URI implementation.
Namespace
GuzzleHttp\Psr7Code
private function filterQueryAndFragment($str) {
return preg_replace_callback('/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\\/\\?]+|%(?![A-Fa-f0-9]{2}))/', [
$this,
'rawurlencodeMatchZero',
], $str);
}