X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..78ff9d91a14da1f53bd3f1ffcab1264d92359b72:/wp-includes/class-snoopy.php diff --git a/wp-includes/class-snoopy.php b/wp-includes/class-snoopy.php index da3d824e..2c59c481 100644 --- a/wp-includes/class-snoopy.php +++ b/wp-includes/class-snoopy.php @@ -719,13 +719,13 @@ class Snoopy chr(176), chr(39), chr(128), - "ä", - "ö", - "ü", - "Ä", - "Ö", - "Ü", - "ß", + chr(0xE4), // ANSI ä + chr(0xF6), // ANSI ö + chr(0xFC), // ANSI ü + chr(0xC4), // ANSI Ä + chr(0xD6), // ANSI Ö + chr(0xDC), // ANSI Ü + chr(0xDF), // ANSI ß ); $text = preg_replace($search,$replace,$document); @@ -910,7 +910,7 @@ class Snoopy return false; } - // check if there is a a redirect meta tag + // check if there is a redirect meta tag if(preg_match("']*?content[\s]*=[\s]*[\"\']?\d+;[\s]*URL[\s]*=[\s]*([^\"\']*?)[\"\']?>'i",$results,$match)) @@ -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); @@ -1057,7 +1057,7 @@ class Snoopy $this->headers[] = $result_headers[$currentHeader]; } - // check if there is a a redirect meta tag + // check if there is a redirect meta tag if(preg_match("']*?content[\s]*=[\s]*[\"\']?\d+;[\s]*URL[\s]*=[\s]*([^\"\']*?)[\"\']?>'i",$results,$match)) {