セキュリティ:メールのセキュリティホールの修正

守矢諏訪子 <suwako@076.moe>、2026-11-10 15:53
コミット 8b05db57fd2c6d9e61d61cd8b1f729dfd7978bc4 ・親 526c49d ・ファイルを見る

1個のファイル、+2 -2

@@ -266,8 +266,8 @@
266266 file_put_contents($tmp, $message);
267267 $sig = shell_exec(
268268 "gpg --batch "
269- .($this->pgpPass ? "--passphrase {$this->pgpPass} " : '')
270- ."--detach-sign --armor {$tmp} 2>&1"
269+ .($this->pgpPass ? "--passphrase ".escapeshellarg($this->pgpPass)." " : '')
270+ ."--detach-sign --armor ".escapeshellarg($tmp)." 2>&1"
271271 );
272272 unlink($tmp);
273273 return $sig;