Changeset 51694
- Timestamp:
- 08/30/2021 02:27:48 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-admin/includes/class-pclzip.php
r50355 r51694 2675 2675 2676 2676 // ----- Read the file content 2677 $v_content = @fread($v_file, $p_header['size']); 2677 if ($p_header['size'] > 0) { 2678 $v_content = @fread($v_file, $p_header['size']); 2679 } 2680 else { 2681 $v_content = ''; 2682 } 2678 2683 2679 2684 // ----- Close the file … … 3885 3890 3886 3891 // ----- Read the compressed file in a buffer (one shot) 3887 if ( $p_entry['compressed_size'] > 0) {3892 if ($p_entry['compressed_size'] > 0) { 3888 3893 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); 3889 3894 } 3890 3895 else { 3891 $v_buffer = false;3896 $v_buffer = ''; 3892 3897 } 3893 3898 … … 4102 4107 4103 4108 // ----- Read the file in a buffer (one shot) 4104 if ( $p_entry['compressed_size'] > 0) {4109 if ($p_entry['compressed_size'] > 0) { 4105 4110 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); 4106 4111 } 4107 4112 else { 4108 $v_buffer = false;4113 $v_buffer = ''; 4109 4114 } 4110 4115 … … 4116 4121 4117 4122 // ----- Read the compressed file in a buffer (one shot) 4118 if ( $p_entry['compressed_size'] > 0) {4123 if ($p_entry['compressed_size'] > 0) { 4119 4124 $v_buffer = @fread($this->zip_fd, $p_entry['compressed_size']); 4120 4125 } 4121 4126 else { 4122 $v_buffer = false;4127 $v_buffer = ''; 4123 4128 } 4124 4129 … … 4225 4230 4226 4231 // ----- Reading the file 4227 if ( $p_entry['compressed_size'] > 0) {4232 if ($p_entry['compressed_size'] > 0) { 4228 4233 $p_string = @fread($this->zip_fd, $p_entry['compressed_size']); 4229 4234 } 4230 4235 else { 4231 $p_string = false;4236 $p_string = ''; 4232 4237 } 4233 4238 } … … 4235 4240 4236 4241 // ----- Reading the file 4237 if ( $p_entry['compressed_size'] > 0) {4242 if ($p_entry['compressed_size'] > 0) { 4238 4243 $v_data = @fread($this->zip_fd, $p_entry['compressed_size']); 4239 4244 } 4240 4245 else { 4241 $v_data = false;4246 $v_data = ''; 4242 4247 } 4243 4248
Note: See TracChangeset
for help on using the changeset viewer.