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:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-07-26 10:43:54 +0300
committerGitHub <noreply@github.com>2022-07-26 10:43:54 +0300
commit1749771ce337d54e26500385e0e9082fe123e8dd (patch)
tree2bb16e4bd5260a0c1c588747e42b1261f9298b2b /lib
parent4fbb53e85e486527800b6eab21e71f7f3b4c85f2 (diff)
parent618bbb313c1df2e860c8c9fd403f37fef1be4470 (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.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';
}