diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-07-25 17:56:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-25 17:56:03 +0200 |
commit | bbe15b4b43f95e1600f5122a7bf72a64ee404b36 (patch) | |
tree | a0c5d10465ac3ebf13b31bd8e91f0274ef1f6591 /lib | |
parent | c523fd1ed76393d79367a598cd89a345f525ea23 (diff) | |
parent | 1d30fb7852e61cf9a2fcd03e83fa193c6aa5c827 (diff) | |
download | nextcloud-server-bbe15b4b43f95e1600f5122a7bf72a64ee404b36.tar.gz nextcloud-server-bbe15b4b43f95e1600f5122a7bf72a64ee404b36.zip |
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.php | 3 |
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'; } |