PHP8: More fixes when posting

This commit is contained in:
towards-a-new-leftypol 2023-08-15 02:32:42 -04:00
parent 1302dcab74
commit e7ce8f2102
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ function handle_post(){
if ($file['is_an_image']) { if ($file['is_an_image']) {
if ($config['ie_mime_type_detection'] !== false) { if ($config['ie_mime_type_detection'] !== false) {
// Check IE MIME type detection XSS exploit // Check IE MIME type detection XSS exploit
$buffer = file_get_contents($upload, null, null, null, 255); $buffer = file_get_contents($upload, false, null, 0, 255);
if (preg_match($config['ie_mime_type_detection'], $buffer)) { if (preg_match($config['ie_mime_type_detection'], $buffer)) {
undoImage($post); undoImage($post);
error($config['error']['mime_exploit']); error($config['error']['mime_exploit']);