diff options
author | root <root@fucktheforce.de> | 2018-01-25 07:58:44 +0100 |
---|---|---|
committer | root <root@fucktheforce.de> | 2018-01-25 07:58:44 +0100 |
commit | 5a25c468f23bfd70bba3f571e1b69d4267df00af (patch) | |
tree | 6b65eaf8418582c38ed23da18969baf8018c5e4a | |
parent | cad4836fbc4dc3750bf973abced81277a89a3de8 (diff) | |
parent | a46124c178edf9958478f10b4c18799c9e93b3fc (diff) |
Merge branch 'master' of http://git.fucktheforce.de/cgi-bin/git/httpupload
-rw-r--r-- | storage-backend/index.php | 2 |
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) { |