mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-30 06:39:40 +02:00
Fixed some inspection issues
This commit is contained in:
parent
33475dca66
commit
42e604245c
85 changed files with 272 additions and 291 deletions
|
@ -448,7 +448,7 @@ class AttachmentSubmitHandler
|
|||
'g' => 1000 * 1000 * 1000,
|
||||
'gi' => 1 << 30,
|
||||
];
|
||||
if (ctype_digit((string) $maxSize)) {
|
||||
if (ctype_digit($maxSize)) {
|
||||
return (int) $maxSize;
|
||||
}
|
||||
|
||||
|
|
|
@ -119,6 +119,9 @@ class FileTypeFilterTools
|
|||
//Convert jpg to .jpg
|
||||
$element = '.'.$element;
|
||||
}
|
||||
|
||||
//Prevent weird side effects
|
||||
unset($element);
|
||||
}
|
||||
|
||||
$elements = array_unique($elements);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue