aboutsummaryrefslogtreecommitdiffstats
path: root/storage-backend/lib/functions.filetransfer.inc.php
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2018-10-04 08:32:08 +0200
committersteckbrief <steckbrief@chefmail.de>2018-10-04 08:32:08 +0200
commitabe4d4646217e04827cbcef6e012524bbaa0b33c (patch)
tree6371b7659917af03f892afc62d72b41b20524ccf /storage-backend/lib/functions.filetransfer.inc.php
parent507d2fd5642b7c13b290a4674ce7d778a348a252 (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.php2
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) {