Skip to content

Commit 64937ab

Browse files
authored
Update ImageRepo.php
fix image validation vulnerability
1 parent a5401eb commit 64937ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/Uploads/ImageRepo.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(
3838
*/
3939
public function imageExtensionSupported(string $extension): bool
4040
{
41-
return in_array(trim($extension, '. \t\n\r\0\x0B'), static::$supportedExtensions);
41+
return in_array(trim($extension, ". \t\n\r\0\x0B"), static::$supportedExtensions);
4242
}
4343

4444
/**

0 commit comments

Comments
 (0)