From a46124c178edf9958478f10b4c18799c9e93b3fc Mon Sep 17 00:00:00 2001 From: steckbrief Date: Wed, 24 Jan 2018 20:21:36 +0100 Subject: Added backwards compatibility --- storage-backend/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage-backend/index.php b/storage-backend/index.php index b432760..f46e0eb 100644 --- a/storage-backend/index.php +++ b/storage-backend/index.php @@ -87,7 +87,7 @@ switch ($method) { $filename = rawurlencode(getMandatoryPostParameter('filename')); $filesize = getMandatoryPostParameter('size'); $mimeType = getOptionalPostParameter('content_type'); - $recipientJid = getMandatoryPostParameter('recipient_jid'); + $recipientJid = getOptionalPostParameter('recipient_jid', 'Unknown'); // Optional for backwards compatibility (xep-0363 v0.1) // check file name - return 406 (not acceptable) if file contains invalid characters foreach ($config['invalid_characters_in_filename'] as $invalidCharacter) { -- cgit v1.2.3