Skip to content

Commit

Permalink
Merge pull request #1 from joshstrange/fix-283
Browse files Browse the repository at this point in the history
Handle following of symlinks for imported orphaned files
  • Loading branch information
joshstrange committed Feb 26, 2018
2 parents 026d1f8 + f652ed0 commit 8ba0905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

// DOWNLOAD
$real_file = UPLOADED_FILES_FOLDER.basename($real_file_url);
$random_file = UPLOADED_FILES_FOLDER.basename($file_on_disk);
$random_file = realpath(UPLOADED_FILES_FOLDER.basename($file_on_disk));
if (file_exists($random_file)) {
session_write_close();
while (ob_get_level()) ob_end_clean();
Expand Down

0 comments on commit 8ba0905

Please sign in to comment.