From cf135c6f5267304a4808b9d77c7db1600791f769 Mon Sep 17 00:00:00 2001 From: Rachel Morrell Date: Wed, 22 Aug 2018 21:28:44 -0400 Subject: [PATCH] Revert "Fix attachments code" This reverts commit eb06ec4490593e14d6a2d2f09e3b1cd2229800ab. --- src/data/attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/attachment.php b/src/data/attachment.php index 514246eb..c7a3d5b7 100644 --- a/src/data/attachment.php +++ b/src/data/attachment.php @@ -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); } }