Merge pull request #57089 from nextcloud/backport/57004/stable31

[stable31] fix(TaskProcessing): Increase EShapeType::Text limit to 512 KB
pull/56852/head
Andy Scherzinger 6 months ago committed by GitHub
commit 83bb7bc2ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      lib/public/TaskProcessing/EShapeType.php

@ -82,7 +82,7 @@ enum EShapeType: int {
*/
public function validateInput(mixed $value): void {
$this->validateNonFileType($value);
if ($this === EShapeType::Text && is_string($value) && strlen($value) > 64_000) {
if ($this === EShapeType::Text && is_string($value) && strlen($value) > 512_000) {
throw new ValidationException('Text is too long');
}
if ($this === EShapeType::Image && !is_numeric($value)) {

Loading…
Cancel
Save