Merge pull request #19122 from owncloud/discardexpirationdatefornonlinkshares
Discard expiration date from result for non-link shares
This commit is contained in:
commit
6006a03ef1
|
@ -2441,6 +2441,11 @@ class Share extends Constants {
|
|||
if (isset($row['stime'])) {
|
||||
$row['stime'] = (int) $row['stime'];
|
||||
}
|
||||
if (isset($row['expiration']) && $row['share_type'] !== self::SHARE_TYPE_LINK) {
|
||||
// discard expiration date for non-link shares, which might have been
|
||||
// set by ancient bugs
|
||||
$row['expiration'] = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue