Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data/attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AttachmentDataController extends DataController {
// Remove all non alpahnum characters from filename - allow international chars, dash, underscore, and period
$filename = preg_replace('/[^\p{L}\p{N}_\-.]+/u', '_', $filename);

$data = file_get_contents(Attachment::attachmentsDir.$filename);
$data = readfile(Attachment::attachmentsDir.$filename);
}
}

Expand Down