Changeset 25052
- Timestamp:
- 08/18/2013 08:21:11 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.6/wp-includes/class-http.php
r24896 r25052 1303 1303 */ 1304 1304 private function stream_body( $handle, $data ) { 1305 if ( function_exists( 'ini_get' ) && ( ini_get( 'mbstring.func_overload' ) & 2 ) && function_exists( 'mb_internal_encoding' ) ) { 1306 $mb_encoding = mb_internal_encoding(); 1307 mb_internal_encoding( 'ISO-8859-1' ); 1308 } 1309 1305 1310 if ( $this->max_body_length && ( strlen( $this->body ) + strlen( $data ) ) > $this->max_body_length ) 1306 1311 $data = substr( $data, 0, ( $this->max_body_length - strlen( $this->body ) ) ); … … 1311 1316 $this->body .= $data; 1312 1317 1313 return strlen( $data ); 1318 $data_length = strlen( $data ); 1319 1320 if ( isset( $mb_encoding ) ) 1321 mb_internal_encoding( $mb_encoding ); 1322 1323 return $data_length; 1314 1324 } 1315 1325
Note: See TracChangeset
for help on using the changeset viewer.