summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2014-06-15 15:00:41 +0200
committerFelix Dörre <felix@dogcraft.de>2014-06-15 15:00:41 +0200
commite288e77fc593546daeb016fdfea571d860cc2f2a (patch)
tree9a8178f29fd54fe4797bcd33e9f5775a9c7da8b6 /includes
parentfdd9deca5f34f034c726fbeb6951b4ec707c35a5 (diff)
downloadcacert-devel-e288e77fc593546daeb016fdfea571d860cc2f2a.tar.gz
cacert-devel-e288e77fc593546daeb016fdfea571d860cc2f2a.tar.xz
cacert-devel-e288e77fc593546daeb016fdfea571d860cc2f2a.zip
bug 1273: Move the one "escapeshellarg" in a new row.
Diffstat (limited to 'includes')
-rw-r--r--includes/general.php3
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);
}