summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Check/FileSize.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Check/FileSize.php')
-rw-r--r--apps/workflowengine/lib/Check/FileSize.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Check/FileSize.php b/apps/workflowengine/lib/Check/FileSize.php
index 1744793dec7..7e48f0f6038 100644
--- a/apps/workflowengine/lib/Check/FileSize.php
+++ b/apps/workflowengine/lib/Check/FileSize.php
@@ -103,13 +103,13 @@ class FileSize implements ICheck {
}
$size = $this->request->getHeader('OC-Total-Length');
- if ($size === null) {
+ if ($size === '') {
if (in_array($this->request->getMethod(), ['POST', 'PUT'])) {
$size = $this->request->getHeader('Content-Length');
}
}
- if ($size === null) {
+ if ($size === '') {
$size = false;
}