Skip to content

Commit

Permalink
Corrected extension extraction a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 30, 2014
1 parent 263b9f2 commit 079eb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cachetweets.php
Expand Up @@ -6,7 +6,7 @@
function embed_img_url($mediaurl)
{
$imgdata = false;
$imgtype = (strlen($mediaurl) > 4) ? strtolower(substr($mediaurl, -4)) : '';
$imgtype = strtolower(strrchr($mediaurl, '.'));

if ($imgtype == '.jpeg')
$imgtype = '.jpg';
Expand Down

0 comments on commit 079eb5e

Please sign in to comment.