diff options
-rw-r--r-- | includes/general.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/general.php b/includes/general.php index 02b559b..ac2e597 100644 --- a/includes/general.php +++ b/includes/general.php @@ -527,7 +527,8 @@ $fp = fopen($tmpfname, "w"); fputs($fp, $message); fclose($fp); - $do = shell_exec("/usr/bin/gpg --homedir /home/gpg --clearsign \"$tmpfname\"|/usr/sbin/sendmail ".escapeshellarg($to)); + $to_esc = escapeshellarg($to); + $do = shell_exec("/usr/bin/gpg --homedir /home/gpg --clearsign \"$tmpfname\"|/usr/sbin/sendmail ".$to_esc); @unlink($tmpfname); } |