Permalink
Browse files

Fixed wrong URL validating.

  • Loading branch information...
1 parent bb817b8 commit 4304ec66595dae904eff414e80fe3a97bbb98022 Victor J. C. Geyer committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/PHPThumb/PHPThumb.php
@@ -84,7 +84,7 @@ public function __construct($fileName, array $options = array(), array $plugins
*/
protected function validateRequestedResource($filename)
{
- if(true === filter_var($filename, FILTER_VALIDATE_URL)) {
+ if(false !== filter_var($filename, FILTER_VALIDATE_URL)) {
$this->remoteImage = true;
return true;
}

0 comments on commit 4304ec6

Please sign in to comment.