mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
Merge pull request #6128 from LibreSign/fix/prevent-error-when-folder-doesnt-exists
fix: prevent error when folder doesn't exists
This commit is contained in:
commit
04c79e4018
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ class JSignPdfHandler extends Pkcs12Handler {
|
|||
*/
|
||||
private function getHome(): string {
|
||||
$jSignPdfHome = $this->appConfig->getValueString(Application::APP_ID, 'jsignpdf_home', '');
|
||||
if ($jSignPdfHome) {
|
||||
if ($jSignPdfHome && is_dir($jSignPdfHome)) {
|
||||
return $jSignPdfHome;
|
||||
}
|
||||
$jsignpdfTempFolder = $this->tempManager->getTemporaryFolder('jsignpdf');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue