function UriResolver::cleanupQuery
Removes the query string from the uri.
1 call to UriResolver::cleanupQuery()
- UriResolver::cleanupUri in vendor/
symfony/ dom-crawler/ UriResolver.php - Removes the query string and the anchor from the given uri.
File
-
vendor/
symfony/ dom-crawler/ UriResolver.php, line 116
Class
- UriResolver
- The UriResolver class takes an URI (relative, absolute, fragment, etc.) and turns it into an absolute URI against another given base URI.
Namespace
Symfony\Component\DomCrawlerCode
private static function cleanupQuery(string $uri) : string {
if (false !== ($pos = strpos($uri, '?'))) {
return substr($uri, 0, $pos);
}
return $uri;
}