Skip to content

Instantly share code, notes, and snippets.

@iainurquhart
Created August 15, 2010 13:07
Show Gist options
  • Save iainurquhart/525474 to your computer and use it in GitHub Desktop.
Save iainurquhart/525474 to your computer and use it in GitHub Desktop.
// find the following around line 127 of pi.imgsizer.php
// -------------------------------------
// do fetch remote img and reset the src
// -------------------------------------
if($remote && $img['url_src']){
$img['src'] = $this->do_remote($img);
}
// immediately after that, enter the following
if((strrpos($img['src'], "/") == (strlen($img['src'])-1)) || $img['src'] == "."){
$TMPL->log_item("imgsizer.Error: image source is blank");
return $TMPL->no_results();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment