Changeset 2032 in ExiteCMS for trunk/getfile.php


Ignore:
Timestamp:
11/15/08 14:39:40 (4 years ago)
Author:
WanWizard
Message:

log file download using relative path, do not expose the absolute path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/getfile.php

    r2030 r2032  
    438438                    $filepath = $cat['fd_path'].$cat['fd_this_dir']; 
    439439                    $downloadname = $cat['files'][$file_id]['name']; 
     440                    break; 
    440441                } 
    441442            } 
     
    448449        // add the download to the statistics tables 
    449450        $on_map = empty($settings['dlstats_geomap_regex']) || preg_match($settings['dlstats_geomap_regex'], trim($filepath.$filename)); 
    450         log_download($filepath.$filename, USER_IP, $on_map, 1, time()); 
     451        log_download($cat['fd_this_dir'].$filename, USER_IP, $on_map, 1, time()); 
    451452        break; 
    452453 
Note: See TracChangeset for help on using the changeset viewer.