Skip to content

Commit

Permalink
BUGFIX: Fixed crash on older versions of PHP when the file does not e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
UndefinedOffset committed Dec 20, 2016
1 parent 5820c3a commit 4fb4255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/SecureFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4fb4255

Please sign in to comment.