浏览代码

Sorting gnupg home

Will Browning 6 年之前
父节点
当前提交
b1bec1b215
共有 1 个文件被更改,包括 2 次插入1 次删除
  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) {