From 74e84dae238e8bd1c109e8d5c22023c1de6ed89e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 8 Jul 2013 17:17:46 +0000 Subject: [PATCH] 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: https://develop.svn.wordpress.org/trunk@24591 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-snoopy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-snoopy.php b/wp-includes/class-snoopy.php index d64f98aae7..2c59c48112 100644 --- a/wp-includes/class-snoopy.php +++ b/wp-includes/class-snoopy.php @@ -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);