fixes a problem in checking for file existence when filename contains '%20' as white space
This commit is contained in:
parent
507d2fd564
commit
abe4d46462
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue