forked from leftypol/leftypol
Major config.php cleanup and a few minor misc fixes.
This commit is contained in:
parent
9e7fbf927c
commit
4fce9b63ae
10 changed files with 605 additions and 527 deletions
2
post.php
2
post.php
|
@ -428,7 +428,7 @@ if (isset($_POST['delete'])) {
|
|||
$post['filehash'] = $config['file_hash']($upload);
|
||||
$post['filesize'] = filesize($upload);
|
||||
|
||||
if ($is_an_image) {
|
||||
if ($is_an_image && $config['ie_mime_type_detection'] !== false) {
|
||||
// Check IE MIME type detection XSS exploit
|
||||
$buffer = file_get_contents($upload, null, null, null, 255);
|
||||
if (preg_match($config['ie_mime_type_detection'], $buffer)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue