Skip to content

Commit

Permalink
Consider byte steraming errors in WP_Byte_Reader::read_all()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Dec 16, 2024
1 parent 9648e97 commit 966e692
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/WordPress/ByteReader/WP_Byte_Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public function read_all(): string {
while( $this->next_bytes() ) {
$buffer .= $this->get_bytes();
}
if( $this->get_last_error() ) {
return false;
}
return $buffer;
}
}

0 comments on commit 966e692

Please sign in to comment.