[PHP] escapeshellcmd() (+php & pgp) From: adam beecher (adam <email protected>)
Date: 09/24/00

[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 <email protected>>\"", $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...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>