Explorar el Código

Sorting gnupg home

Will Browning hace 6 años
padre
commit
b1bec1b215
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Mail/ForwardEmail.php

+ 2 - 1
app/Mail/ForwardEmail.php

@@ -45,8 +45,9 @@ class ForwardEmail extends Mailable implements ShouldQueue
         $this->deactivateUrl = URL::signedRoute('deactivate', ['alias' => $alias->id]);
         $this->bannerLocation = $this->alias->user->banner_location;
 
+        $path = "~/.gnupg";
         $this->openpgpsigner = OpenPGPSigner::newInstance();
-        $this->openpgpsigner->setGnupgHome('~/.gnupg');
+        $this->openpgpsigner->setGnupgHome($path);
         $this->openpgpsigner->setEncrypt($shouldEncrypt);
 
         if ($fingerprint) {