Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Made error message more clear
Browse files Browse the repository at this point in the history
The previous version did not specify why permission was denied
  • Loading branch information
Pimverleg authored and bsweeney committed Sep 14, 2018
1 parent 52e5b3e commit 004cbec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dompdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function loadHtmlFile($file)

$ext = strtolower(pathinfo($realfile, PATHINFO_EXTENSION));
if (!in_array($ext, $this->allowedLocalFileExtensions)) {
throw new Exception("Permission denied on $file.");
throw new Exception("Permission denied on $file. This file extension is forbidden");
}

if (!$realfile) {
Expand Down

0 comments on commit 004cbec

Please sign in to comment.