Ignore:
Timestamp:
03/29/10 15:37:29 (2 years ago)
Author:
bogdan2412
Message:

Updated with changes from live.

  • Updated SMF to 1.1.11
  • Added Summify to site and forum
  • Small change to job detail view
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/smf/Sources/Display.php

    r1048 r1121  
    66* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                    * 
    77* =============================================================================== * 
    8 * Software Version:           SMF 1.1.9                                           * 
     8* Software Version:           SMF 1.1.11                                          * 
    99* Software by:                Simple Machines (http://www.simplemachines.org)     * 
    1010* Copyright 2006-2009 by:     Simple Machines LLC (http://www.simplemachines.org) * 
     
    929929function Download() 
    930930{ 
    931         global $txt, $modSettings, $db_prefix, $user_info, $scripturl, $context, $sourcedir; 
     931        global $txt, $modSettings, $db_prefix, $user_info, $scripturl, $context, $sourcedir, $topic; 
    932932 
    933933        $context['no_last_modified'] = true; 
     
    952952        else 
    953953        { 
     954                // This checks only the current board for $board/$topic's permissions. 
    954955                isAllowedTo('view_attachments'); 
    955956 
    956957                // 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. 
    957959                $request = db_query(" 
    958960                        SELECT a.filename, a.ID_ATTACH, a.attachmentType, a.file_hash 
     
    961963                                AND $user_info[query_see_board] 
    962964                                AND m.ID_MSG = a.ID_MSG 
     965                                AND m.ID_TOPIC = $topic 
    963966                                AND a.ID_ATTACH = $_REQUEST[attach] 
    964967                        LIMIT 1", __FILE__, __LINE__); 
Note: See TracChangeset for help on using the changeset viewer.