Wordpress 3.7
[autoinstalls/wordpress.git] / wp-includes / SimplePie / Sanitize.php
index 442e8e219cd3bfc9fb30831c025b20a16581fa8b..1ce047a3f90f947275371fb7e6e53e716a98bd33 100644 (file)
@@ -315,7 +315,7 @@ class SimplePie_Sanitize
                                                        }
                                                        else
                                                        {
-                                                               $file = $this->registry->create('File', array($img['attribs']['src']['data'], $this->timeout, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen));
+                                                               $file = $this->registry->create('File', array($img->getAttribute('src'), $this->timeout, 5, array('X-FORWARDED-FOR' => $_SERVER['REMOTE_ADDR']), $this->useragent, $this->force_fsockopen));
                                                                $headers = $file->headers;
 
                                                                if ($file->success && ($file->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($file->status_code === 200 || $file->status_code > 206 && $file->status_code < 300)))