Merge pull request #57088 from nextcloud/backport/57004/stable32

[stable32] fix(TaskProcessing): Increase EShapeType::Text limit to 512 KB
This commit is contained in:
Marcel Klehr 2025-12-15 15:30:56 +01:00 committed by GitHub
commit b4a18b07bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)) {