Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
3cf237df
Commit
3cf237df
authored
Feb 23, 2015
by
Robin Appelman
Browse files
set max argument length to 4000
parent
bf65b1f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
db_structure.xml
View file @
3cf237df
...
...
@@ -979,7 +979,7 @@
<type>
text
</type>
<default></default>
<notnull>
true
</notnull>
<length>
2048
</length>
<length>
4000
</length>
</field>
<field>
...
...
lib/private/backgroundjob/joblist.php
View file @
3cf237df
...
...
@@ -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)'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment