escapeshell SA17779

git-svn-id: https://develop.svn.wordpress.org/trunk@3235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-29 14:07:30 +00:00
parent 92729e5fba
commit b948ca459f
1 changed files with 1 additions and 1 deletions

View File

@ -1014,7 +1014,7 @@ class Snoopy
$headerfile = tempnam($temp_dir, "sno");
$safer_URI = strtr( $URI, "\"", " " ); // strip quotes from the URI to avoid shell access
exec($this->curl_path." -D \"$headerfile\"".$cmdline_params." \"".$safer_URI."\"",$results,$return);
exec(escapeshellcmd($this->curl_path." -D \"$headerfile\"".$cmdline_params." \"".$safer_URI."\""),$results,$return);
if($return)
{