Use non strict comparison to validate token
On my setup this is needed to load a document Maybe related to using postgres
This commit is contained in:
parent
8ec0138f5d
commit
cfd3bb662a
@ -114,7 +114,7 @@ class Wopi extends \OCA\Richdocuments\Db{
|
|||||||
//$wopi->deleteBy('id', $row['id']);
|
//$wopi->deleteBy('id', $row['id']);
|
||||||
//return false;
|
//return false;
|
||||||
}
|
}
|
||||||
if ($row['fileid'] !== $fileId || $row['version'] !== $version){
|
if ($row['fileid'] != $fileId || $row['version'] != $version){
|
||||||
// File unknown / user unauthorized (for the requested file).
|
// File unknown / user unauthorized (for the requested file).
|
||||||
http_response_code(404);
|
http_response_code(404);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user