diff options
Diffstat (limited to 'library/SSRS/Report/CachedStreamResource.php')
-rw-r--r-- | library/SSRS/Report/CachedStreamResource.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/SSRS/Report/CachedStreamResource.php b/library/SSRS/Report/CachedStreamResource.php index 08e9dbb..013eaee 100644 --- a/library/SSRS/Report/CachedStreamResource.php +++ b/library/SSRS/Report/CachedStreamResource.php @@ -15,6 +15,10 @@ class CachedStreamResource { } public function read() { + if (false === file_exists($this->filePath)) { + throw new HttpUserException('Resource file not found', 404); + } + $data = file_get_contents($this->filePath); $parts = explode("\n", $data, 2); |