diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-07-26 10:43:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 10:43:54 +0300 |
commit | 1749771ce337d54e26500385e0e9082fe123e8dd (patch) | |
tree | 2bb16e4bd5260a0c1c588747e42b1261f9298b2b /lib | |
parent | 4fbb53e85e486527800b6eab21e71f7f3b4c85f2 (diff) | |
parent | 618bbb313c1df2e860c8c9fd403f37fef1be4470 (diff) |
Merge pull request #33343 from nextcloud/backport/33129/stable24
[stable24] 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'; } |