From: Robin Appelman Date: Mon, 23 Feb 2015 17:07:13 +0000 (+0100) Subject: set max argument length to 4000 X-Git-Tag: v8.1.0alpha1~400^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3cf237df67008da8878fff28a2d6b4ad77288ad9;p=nextcloud-server.git set max argument length to 4000 --- diff --git a/db_structure.xml b/db_structure.xml index 9f8cfdce4c5..142661ba427 100644 --- a/db_structure.xml +++ b/db_structure.xml @@ -979,7 +979,7 @@ text true - 2048 + 4000 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)');