diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-02 20:52:58 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-02 20:52:58 -0400 |
| commit | 4fce9b63aee89c04ea0d833992e72ab75585f630 (patch) | |
| tree | b49f3e673e3f8dd8b0bbd8da7f690f581b4ec83b /post.php | |
| parent | 9e7fbf927c67797269062a3b5f827a92ac822e12 (diff) | |
Major config.php cleanup and a few minor misc fixes.
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |
