Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
add trailing slash for url on shortcuticon
Browse files Browse the repository at this point in the history
  • Loading branch information
SSilence committed Apr 21, 2013
1 parent d8a37ab commit 714c657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function fetchFavicon($url, $isHtmlUrl=false, $width=false, $height=false
elseif (substr($shortcutIcon, 0, 1)=='/')
$shortcutIcon = $urlElements['scheme'] . '://' . $urlElements['host'] . $shortcutIcon;
else
$shortcutIcon = $url . '/' . $shortcutIcon;
$shortcutIcon = (strrpos($url, '/')===strlen($url)-1) ? $url . $shortcutIcon : $url . '/' . $shortcutIcon;
}

$faviconAsPng = $this->loadImage($shortcutIcon, $width, $height);
Expand Down

0 comments on commit 714c657

Please sign in to comment.