From abe4d4646217e04827cbcef6e012524bbaa0b33c Mon Sep 17 00:00:00 2001 From: steckbrief Date: Thu, 4 Oct 2018 08:32:08 +0200 Subject: fixes a problem in checking for file existence when filename contains '%20' as white space --- storage-backend/lib/functions.filetransfer.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage-backend/lib') diff --git a/storage-backend/lib/functions.filetransfer.inc.php b/storage-backend/lib/functions.filetransfer.inc.php index 440c41a..af71ac1 100644 --- a/storage-backend/lib/functions.filetransfer.inc.php +++ b/storage-backend/lib/functions.filetransfer.inc.php @@ -40,7 +40,7 @@ function readSlots($jid) { if ($senderBareJid == $jid || $recipientBareJid == $jid) { $filePath = getUploadFilePath($slotUUID, $config, $params['filename']); $file = []; - $fileExists = file_exists($filePath); + $fileExists = file_exists(rawurldecode($filePath)); $file['url'] = ""; $file['sent_time'] = $params['creation_time']; if ($fileExists) { -- cgit v1.2.3