Changeset 1121 for trunk/smf/Sources/Display.php
- Timestamp:
- 03/29/10 15:37:29 (2 years ago)
- File:
-
- 1 edited
-
trunk/smf/Sources/Display.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/smf/Sources/Display.php
r1048 r1121 6 6 * Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com) * 7 7 * =============================================================================== * 8 * Software Version: SMF 1.1. 9*8 * Software Version: SMF 1.1.11 * 9 9 * Software by: Simple Machines (http://www.simplemachines.org) * 10 10 * Copyright 2006-2009 by: Simple Machines LLC (http://www.simplemachines.org) * … … 929 929 function Download() 930 930 { 931 global $txt, $modSettings, $db_prefix, $user_info, $scripturl, $context, $sourcedir ;931 global $txt, $modSettings, $db_prefix, $user_info, $scripturl, $context, $sourcedir, $topic; 932 932 933 933 $context['no_last_modified'] = true; … … 952 952 else 953 953 { 954 // This checks only the current board for $board/$topic's permissions. 954 955 isAllowedTo('view_attachments'); 955 956 956 957 // Make sure this attachment is on this board. 958 // NOTE: We must verify that $topic is the attachment's topic, or else the permission check above is broken. 957 959 $request = db_query(" 958 960 SELECT a.filename, a.ID_ATTACH, a.attachmentType, a.file_hash … … 961 963 AND $user_info[query_see_board] 962 964 AND m.ID_MSG = a.ID_MSG 965 AND m.ID_TOPIC = $topic 963 966 AND a.ID_ATTACH = $_REQUEST[attach] 964 967 LIMIT 1", __FILE__, __LINE__);
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)