summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-02 20:52:58 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-02 20:52:58 -0400
commit4fce9b63aee89c04ea0d833992e72ab75585f630 (patch)
treeb49f3e673e3f8dd8b0bbd8da7f690f581b4ec83b /post.php
parent9e7fbf927c67797269062a3b5f827a92ac822e12 (diff)
Major config.php cleanup and a few minor misc fixes.
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 5031830f..103894db 100644
--- a/post.php
+++ b/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)) {