mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-03 15:59:57 +00:00
Update ImageRepo.php
fix image validation vulnerability
This commit is contained in:
parent
a5401eb00a
commit
64937ab826
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class ImageRepo
|
||||||
*/
|
*/
|
||||||
public function imageExtensionSupported(string $extension): bool
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue