escapeshell SA17779
git-svn-id: https://develop.svn.wordpress.org/trunk@3235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
92729e5fba
commit
b948ca459f
|
@ -1014,7 +1014,7 @@ class Snoopy
|
||||||
$headerfile = tempnam($temp_dir, "sno");
|
$headerfile = tempnam($temp_dir, "sno");
|
||||||
|
|
||||||
$safer_URI = strtr( $URI, "\"", " " ); // strip quotes from the URI to avoid shell access
|
$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)
|
if($return)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue