aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-05-15 14:10:11 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-05-15 14:10:11 +0000
commitfc12c0021961f369090a3ea9fdcd62ef4d51505e (patch)
treed0e0b7b822341ee63c41bcc7eb2db823bdd0163b /phpBB/includes/functions_posting.php
parent9413af5e1a59a9bfc01fb5d3896a2fb5d34055f4 (diff)
downloadforums-fc12c0021961f369090a3ea9fdcd62ef4d51505e.tar
forums-fc12c0021961f369090a3ea9fdcd62ef4d51505e.tar.gz
forums-fc12c0021961f369090a3ea9fdcd62ef4d51505e.tar.bz2
forums-fc12c0021961f369090a3ea9fdcd62ef4d51505e.tar.xz
forums-fc12c0021961f369090a3ea9fdcd62ef4d51505e.zip
And more new features for reasonable paranoia.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8555 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 709516a2b0..a7b9cc5bd5 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -358,6 +358,11 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
include_once($phpbb_root_path . 'includes/functions_upload.' . $phpEx);
$upload = new fileupload();
+ if ($config['check_attachment_content'])
+ {
+ $upload->set_disallowed_content(explode('|', $config['mime_triggers']));
+ }
+
if (!$local)
{
$filedata['post_attach'] = ($upload->is_valid($form_name)) ? true : false;