Changeset 664


Ignore:
Timestamp:
Feb 24, 2012, 12:30:32 PM (9 years ago)
Author:
zerodeux
Message:

Download file name: use basename and not full path, see #9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bearfile/bearfile.php

    r663 r664  
    133133
    134134  header("Content-Type: $ftype");
    135   header('Content-Disposition: attachment; filename="'.$fname.'"');
     135  header('Content-Disposition: attachment; filename="'.$name.'"');
    136136  fpassthru($fh);
    137137  fclose($fh);
Note: See TracChangeset for help on using the changeset viewer.