From 4fb4255d2bebab3658ff201d1b03d68ccfb05a15 Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Tue, 20 Dec 2016 10:43:10 -0400 Subject: [PATCH] BUGFIX: Fixed crash on older versions of PHP when the file does not exist --- code/SecureFileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SecureFileController.php b/code/SecureFileController.php index 1729397..339e35f 100644 --- a/code/SecureFileController.php +++ b/code/SecureFileController.php @@ -66,7 +66,7 @@ public function handleRequest(SS_HTTPRequest $request, DataModel $model) { Security::permissionFailure($self, 'You are not authorised to access this resource. Please log in.'); } else { // File doesn't exist - return $this->httpError(404); + return $self->httpError(404); } }