Changeset 24481 for branches/3.5/wp-includes/class-feed.php
- Timestamp:
- 06/21/2013 06:12:17 AM (11 years ago)
- Location:
- branches/3.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.5
-
branches/3.5/wp-includes/class-feed.php
r22811 r24481 67 67 68 68 if ( preg_match('/^http(s)?:\/\//i', $url) ) { 69 $args = array( 'timeout' => $this->timeout, 'redirection' => $this->redirects); 69 $args = array( 70 'timeout' => $this->timeout, 71 'redirection' => $this->redirects, 72 'reject_unsafe_urls' => true, 73 ); 70 74 71 75 if ( !empty($this->headers) ) … … 86 90 } 87 91 } else { 88 if ( ! file_exists($url) || ( ! $this->body = file_get_contents($url) ) ) { 89 $this->error = 'file_get_contents could not read the file'; 90 $this->success = false; 91 } 92 $this->error = ''; 93 $this->success = false; 92 94 } 93 95 }
Note: See TracChangeset
for help on using the changeset viewer.