Skip to content

Commit

Permalink
Merge branch 'master' of github.com:24eme/signaturepdf
Browse files Browse the repository at this point in the history
  • Loading branch information
teymour committed Jul 30, 2024
2 parents d90da55 + 618a6eb commit ee4a7d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/GPGCryptography.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function decrypt() {
return false;
}
$decryptFolder = sys_get_temp_dir()."/".uniqid('pdfsignature.decrypted.'.getmypid(), true);
putenv('HOME='.$decryptFolder);
putenv('HOME='.sys_get_temp_dir());
mkdir($decryptFolder);
foreach ($this->getFiles(true) as $file) {
$outputFile = $decryptFolder."/".str_replace(".gpg", "", basename($file));
Expand Down Expand Up @@ -77,9 +77,6 @@ public static function hardUnlink($element) {
foreach (glob($element.'/*') as $file) {
self::hardUnlink($file);
}
foreach (glob($element.'/.*') as $file) {
self::hardUnlink($file);
}
rmdir($element);
return;
}
Expand Down

0 comments on commit ee4a7d3

Please sign in to comment.