mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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");
|
$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…
x
Reference in New Issue
Block a user