diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-02-23 18:07:13 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-02-25 15:09:41 +0100 |
commit | 3cf237df67008da8878fff28a2d6b4ad77288ad9 (patch) | |
tree | 0f1f441ad85a37a2c1760dcd111e34cd67945fbb /lib/private/backgroundjob | |
parent | bf65b1f18b4737f02b1f55e923b718a10851d5cf (diff) | |
download | nextcloud-server-3cf237df67008da8878fff28a2d6b4ad77288ad9.tar.gz nextcloud-server-3cf237df67008da8878fff28a2d6b4ad77288ad9.zip |
set max argument length to 4000
Diffstat (limited to 'lib/private/backgroundjob')
-rw-r--r-- | lib/private/backgroundjob/joblist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php index 95a7b125801..ded269dfe59 100644 --- a/lib/private/backgroundjob/joblist.php +++ b/lib/private/backgroundjob/joblist.php @@ -57,7 +57,7 @@ class JobList implements IJobList { $class = $job; } $argument = json_encode($argument); - if (strlen($argument) > 2048) { + if (strlen($argument) > 4000) { throw new \InvalidArgumentException('Background job arguments cant exceed 2048 characters (json encoded'); } $query = $this->conn->prepare('INSERT INTO `*PREFIX*jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)'); |