Update ImageRepo.php

fix image validation vulnerability
This commit is contained in:
Haxatron 2021-10-26 09:39:16 +08:00 committed by GitHub
parent a5401eb00a
commit 64937ab826
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ class ImageRepo
*/
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);
}
/**