Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent supplied resource is not a valid stream resource #27261

Closed
wants to merge 3 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/files_external/3rdparty/icewind/streams/src/Wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ public function stream_eof() {
}

public function stream_close() {
return fclose($this->source);
if (is_resource($this->source)
liamdemafelix marked this conversation as resolved.
Show resolved Hide resolved
return fclose($this->source);

// Silently return true if source is not a resource
return true;
}

public function dir_readdir() {
Expand Down