diff --git a/Classes/PHPExcel/Settings.php b/Classes/PHPExcel/Settings.php index 43260136..a6c855dd 100644 --- a/Classes/PHPExcel/Settings.php +++ b/Classes/PHPExcel/Settings.php @@ -220,6 +220,9 @@ class PHPExcel_Settings * @return boolean Success or failure */ public static function setChartRendererPath($libraryBaseDir) { + if ((file_exists($libraryBaseDir) === false) || (is_readable($libraryBaseDir) === false)) { + return FALSE; + } self::$_chartRendererPath = $libraryBaseDir; return TRUE; @@ -293,6 +296,9 @@ class PHPExcel_Settings * @return boolean Success or failure */ public static function setPdfRendererPath($libraryBaseDir) { + if ((file_exists($libraryBaseDir) === false) || (is_readable($libraryBaseDir) === false)) { + return FALSE; + } self::$_pdfRendererPath = $libraryBaseDir; return TRUE;