Skip to content

Commit

Permalink
Fix redirects that apply URL parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
filliph authored Jan 7, 2025
1 parent 2f2af25 commit 0e62a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Favicon/Favicon.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function get($url = '', $type = FaviconDLType::HOTLINK_URL)
($favicon = $this->checkCache($original, self::$TYPE_CACHE_URL)) === false
&& ! $favicon = $this->getFavicon($original, false)
) {
$url = rtrim($this->endRedirect(self::baseUrl($this->url, false)), '/');
$url = rtrim(self::baseUrl($this->endRedirect(self::baseUrl($this->url, false)), false), '/');
if (
($favicon = $this->checkCache($url, self::$TYPE_CACHE_URL)) === false
&& ! $favicon = $this->getFavicon($url)
Expand Down

0 comments on commit 0e62a12

Please sign in to comment.