Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed wrong URL validating.

  • Loading branch information...
commit 4304ec66595dae904eff414e80fe3a97bbb98022 1 parent bb817b8
@Lexance Lexance authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/PHPThumb/PHPThumb.php
View
2  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.