bug 1273: Move the one "escapeshellarg" in a new row.
authorFelix Dörre <felix@dogcraft.de>
Sun, 15 Jun 2014 13:00:41 +0000 (15:00 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sun, 15 Jun 2014 13:00:41 +0000 (15:00 +0200)
includes/general.php

index 02b559b..ac2e597 100644 (file)
                $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);
        }