escapeshell SA17779
git-svn-id: http://svn.automattic.com/wordpress/trunk@3235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0ff8f49cd5
commit
489c6c4257
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue