Skip to content

Commit

Permalink
Fixed wrong strpos condition
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Mar 10, 2017
1 parent 5f18c5f commit 0496a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ private static function isChecksumValid(Storage $storage, $path) {
$expectedChecksum = trim($request->server['HTTP_OC_CHECKSUM']);
$computedChecksums = $meta['checksum'];

return strpos($computedChecksums, $expectedChecksum) !== true;
return strpos($computedChecksums, $expectedChecksum) !== false;

}

Expand Down

0 comments on commit 0496a82

Please sign in to comment.