Hi folks,
Long time since I bin here!
Got a PHP/PGP encryption script, however I'm having trouble with it. To pass the user input safely to the command line, I have to use escapeshellcmd() right?
$m = escapeshellcmd(stripslashes(trim($m)));
exec("echo \"$m\" | pgp -feat +batchmode \"name <user@dom.com>\"", $r, $s);
However, that means that the emails, when decrypted, have ugly slashes all over the shop. Anyone think of a way around this? I can't think of one...
adam