escapeshellcmd() (+php & pgp)

From: Date: Sun, 24 Sep 2000 17:23:37 +0000
Subject: escapeshellcmd() (+php & pgp)
Groups: php.general 
Request: Send a blank email to php-general+get-17339@lists.php.net to get a copy of this message
[Originally posted on phpbuilder.com. Please copy off-list.] Having trouble with a PHP/PGP encryption script. 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... Thanks in advance, adam _____________________________________________________ NetSol - Put The Dot On The Ground And Move Away Slowly...

« previous php.general (#17339) next »