Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Revert "Fix attachments code" #650

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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