aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_download.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r--phpBB/includes/functions_download.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index 7d21147ab5..b01712357d 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -613,26 +613,3 @@ function phpbb_increment_downloads($db, $ids)
WHERE ' . $db->sql_in_set('attach_id', $ids);
$db->sql_query($sql);
}
-
-/**
-* Checks every attachment to see if it has an allowed extension
-*
-* @param array $extensions As generated by phpbb_cache_service::obtain_attach_extensions
-* @param array &$attachments An array of attachments to check
-*
-* @return bool Whether any of the attachments had allowed extensions
-*/
-function phpbb_check_attach_extensions($extensions, &$attachments)
-{
- $new_ary = array();
- foreach ($attachments as $attach)
- {
- if (isset($extensions['_allowed_'][$attach['extension']]))
- {
- $new_ary[] = $attach;
- }
- }
-
- $attachments = $new_ary;
- return !empty($attachments);
-}