PHP8: More fixes when posting
This commit is contained in:
parent
1302dcab74
commit
e7ce8f2102
2
post.php
2
post.php
|
@ -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']);
|
||||||
|
|
Loading…
Reference in New Issue