Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-07-25 18:56:03 +0300
committerGitHub <noreply@github.com>2022-07-25 18:56:03 +0300
commitbbe15b4b43f95e1600f5122a7bf72a64ee404b36 (patch)
treea0c5d10465ac3ebf13b31bd8e91f0274ef1f6591 /lib
parentc523fd1ed76393d79367a598cd89a345f525ea23 (diff)
parent1d30fb7852e61cf9a2fcd03e83fa193c6aa5c827 (diff)
Merge pull request #33129 from nextcloud/fix-reading-blob-as-resources
Fix reading blob data as resource
Diffstat (limited to 'lib')
-rw-r--r--lib/public/AppFramework/Db/Entity.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Db/Entity.php b/lib/public/AppFramework/Db/Entity.php
index a059e3a27b0..dcd1c77c042 100644
--- a/lib/public/AppFramework/Db/Entity.php
+++ b/lib/public/AppFramework/Db/Entity.php
@@ -113,6 +113,9 @@ abstract class Entity {
$type = $this->_fieldTypes[$name];
if ($type === 'blob') {
// (B)LOB is treated as string when we read from the DB
+ if (is_resource($args[0])) {
+ $args[0] = stream_get_contents($args[0]);
+ }
$type = 'string';
}