diff options
author | Andreas Fischer <bantu@phpbb.com> | 2012-08-07 02:48:49 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2012-08-07 02:48:49 +0200 |
commit | 89c102a744ba9ea3eafefd47fd375342bcf6bbe4 (patch) | |
tree | faa35cbabdc3d5d5b6a9fcc51ae810f082427665 /phpBB/includes/functions_download.php | |
parent | bba348d68a3114c3c6cad6f1d92855084ce8fa64 (diff) | |
download | forums-89c102a744ba9ea3eafefd47fd375342bcf6bbe4.tar forums-89c102a744ba9ea3eafefd47fd375342bcf6bbe4.tar.gz forums-89c102a744ba9ea3eafefd47fd375342bcf6bbe4.tar.bz2 forums-89c102a744ba9ea3eafefd47fd375342bcf6bbe4.tar.xz forums-89c102a744ba9ea3eafefd47fd375342bcf6bbe4.zip |
[feature/attach-dl] phpbb_filter_disallowed_extensions: Preserve array keys.
PHPBB3-11042
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r-- | phpBB/includes/functions_download.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php index 74c8be5f7b..8453469e83 100644 --- a/phpBB/includes/functions_download.php +++ b/phpBB/includes/functions_download.php @@ -625,11 +625,11 @@ function phpbb_increment_downloads($db, $ids) function phpbb_filter_disallowed_extensions($extensions, $attachments) { $result = array(); - foreach ($attachments as $row) + foreach ($attachments as $key => $row) { if (isset($extensions['_allowed_'][$row['extension']])) { - $result[] = $row; + $result[$key] = $row; } } |