mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-12 18:42:03 +01:00
Use correct variable in the deprecated and abandoned Snoopy HTTP client. see #24210.
See also: * http://sourceforge.net/p/snoopy/bugs/60/ * http://sourceforge.net/p/snoopy/bugs/62/ * http://sourceforge.net/p/snoopy/bugs/73/ * http://sourceforge.net/p/snoopy/bugs/77/ * and probably more. This project is abandoned. If any plugins are using this (instead of the WordPress HTTP API), this at least ensures that temp files are cleaned up. git-svn-id: http://core.svn.wordpress.org/trunk@24591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7f488b4096
commit
cbd3566a2b
@ -1010,7 +1010,7 @@ class Snoopy
|
||||
if($this->read_timeout > 0)
|
||||
$cmdline_params .= " -m ".$this->read_timeout;
|
||||
|
||||
$headerfile = tempnam($temp_dir, "sno");
|
||||
$headerfile = tempnam($this->temp_dir, "sno");
|
||||
|
||||
exec($this->curl_path." -k -D \"$headerfile\"".$cmdline_params." \"".escapeshellcmd($URI)."\"",$results,$return);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user