Skip to content

Commit

Permalink
Merge pull request from GHSA-m496-x567-f98c
Browse files Browse the repository at this point in the history
Fixing a bug in Zend Framework's Stream HTTP Wrapper
  • Loading branch information
mark-netalico authored Apr 19, 2021
2 parents 368a585 + ecddab5 commit 6b663bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Zend/Http/Response/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function __destruct()
fclose($this->stream);
$this->stream = null;
}
if($this->_cleanup) {
if($this->_cleanup && is_string($this->stream_name) && file_exists($this->stream_name)) {
@unlink($this->stream_name);
}
}
Expand Down

0 comments on commit 6b663bb

Please sign in to comment.