We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc92c3 commit 0d9c354Copy full SHA for 0d9c354
src/Adapters/Facebook/OEmbed.php
@@ -22,13 +22,9 @@ protected function detectEndpoint(): ?UriInterface
22
23
$uri = $this->extractor->getUri();
24
if (strpos($uri->getPath(), 'login') !== false) {
25
- $query = $uri->getQuery();
26
- $params = explode('&', $query);
27
- foreach ($params as $param) {
28
- $keyval = explode('=', $param);
29
- if ($keyval[0] == 'next') {
30
- $uri = $this->extractor->getCrawler()->createUri(rawurldecode($keyval[1]));
31
- }
+ parse_str($uri->getQuery(), $params);
+ if (isset($params['next']) && $params['next']) {
+ $uri = $this->extractor->getCrawler()->createUri($params['next']);
32
}
33
34
$queryParameters = $this->getOembedQueryParameters((string) $uri);
0 commit comments