private function Link::cleanupQuery in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Link.php \Symfony\Component\DomCrawler\Link::cleanupQuery()
Remove the query string from the uri.
Parameters
string $uri:
Return value
string
1 call to Link::cleanupQuery()
- Link::cleanupUri in vendor/
symfony/ dom-crawler/ Link.php - Removes the query string and the anchor from the given uri.
File
- vendor/
symfony/ dom-crawler/ Link.php, line 200
Class
- Link
- Link represents an HTML link (an HTML a, area or link tag).
Namespace
Symfony\Component\DomCrawlerCode
private function cleanupQuery($uri) {
if (false !== ($pos = strpos($uri, '?'))) {
return substr($uri, 0, $pos);
}
return $uri;
}