diff options
author | steckbrief <steckbrief@chefmail.de> | 2018-10-04 08:32:08 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2018-10-04 08:32:08 +0200 |
commit | abe4d4646217e04827cbcef6e012524bbaa0b33c (patch) | |
tree | 6371b7659917af03f892afc62d72b41b20524ccf /storage-backend/lib/functions.filetransfer.inc.php | |
parent | 507d2fd5642b7c13b290a4674ce7d778a348a252 (diff) |
fixes a problem in checking for file existence when filename contains '%20' as white space
Diffstat (limited to '')
-rw-r--r-- | storage-backend/lib/functions.filetransfer.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |