Skip to content

Commit

Permalink
Update ImageRepo.php
Browse files Browse the repository at this point in the history
fix image validation vulnerability
  • Loading branch information
Haxatron committed Oct 26, 2021
1 parent a5401eb commit 64937ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Uploads/ImageRepo.php
Expand Up @@ -38,7 +38,7 @@ public function __construct(
*/
public function imageExtensionSupported(string $extension): bool
{
return in_array(trim($extension, '. \t\n\r\0\x0B'), static::$supportedExtensions);
return in_array(trim($extension, ". \t\n\r\0\x0B"), static::$supportedExtensions);
}

/**
Expand Down

0 comments on commit 64937ab

Please sign in to comment.