fixes a problem in checking for file existence when filename contains '%20' as white space

This commit is contained in:
steckbrief 2018-10-04 08:32:08 +02:00
parent 507d2fd564
commit abe4d46462

View file

@ -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) {