aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2018-01-24 20:21:36 +0100
committersteckbrief <steckbrief@chefmail.de>2018-01-24 20:21:36 +0100
commita46124c178edf9958478f10b4c18799c9e93b3fc (patch)
tree6b65eaf8418582c38ed23da18969baf8018c5e4a
parentb7515c5d9c5fc3c622376818570c05a03c74fe17 (diff)
Added backwards compatibility0.2.1
-rw-r--r--storage-backend/index.php2
1 files changed, 1 insertions, 1 deletions
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) {