diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-15 06:06:28 +0800 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-15 06:06:28 +0800 |
commit | f6e8d938cb4fcd0bee2340033328f2f7cfade232 (patch) | |
tree | 2f9718a8aed6e9faf53779ea2b581ad0c664b845 /phpBB | |
parent | 617a5132d8603936376185954a30a6272b2384e5 (diff) | |
download | forums-f6e8d938cb4fcd0bee2340033328f2f7cfade232.tar forums-f6e8d938cb4fcd0bee2340033328f2f7cfade232.tar.gz forums-f6e8d938cb4fcd0bee2340033328f2f7cfade232.tar.bz2 forums-f6e8d938cb4fcd0bee2340033328f2f7cfade232.tar.xz forums-f6e8d938cb4fcd0bee2340033328f2f7cfade232.zip |
[feature/attch-dl] $forum_id cast to int
PHPBB3-11042
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/download/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 939dbe81f7..170998d5e1 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -369,7 +369,7 @@ else $extensions = array(); $files_added = 0; - $forum_id = ($attachment['in_message']) ? false : $row['forum_id']; + $forum_id = ($attachment['in_message']) ? false : (int) $row['forum_id']; $disallowed = array(); foreach ($attachments as $attach) |