From e7ce8f2102b0fb5c114b18f35cb48370f3f0a73b Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 15 Aug 2023 02:32:42 -0400 Subject: [PATCH] PHP8: More fixes when posting --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index ad9d2b0b..50479354 100644 --- a/post.php +++ b/post.php @@ -993,7 +993,7 @@ function handle_post(){ if ($file['is_an_image']) { if ($config['ie_mime_type_detection'] !== false) { // 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)) { undoImage($post); error($config['error']['mime_exploit']);