Skip to content

Commit

Permalink
fixup! HttpClient: refactor the way we clean utm_ query params
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Decherf <[email protected]>
  • Loading branch information
Kdecherf committed Dec 4, 2021
1 parent 3a06834 commit 6dfe4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extractor/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function fetch($url, $skipTypeVerification = false, $httpHeader = [])
}

// remove utm parameters & fragment
$uri = new Uri($effectiveUrl);
$uri = new Uri(str_replace('&amp;', '&', $effectiveUrl));
parse_str($uri->getQuery(), $query);
$queryParameters = array_filter($query, function ($k) {
return !(0 === stripos($k, 'utm_'));
Expand Down

0 comments on commit 6dfe4d5

Please sign in to comment.