Skip to content

Commit

Permalink
Merge pull request #19216 from owncloud/stable8.1-discardexpirationda…
Browse files Browse the repository at this point in the history
…tefornonlinkshares

[stable8.1] Discard expiration date from result for non-link shares
  • Loading branch information
DeepDiver1975 committed Sep 24, 2015
2 parents c4667d5 + c48a61a commit d6994b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/private/share/share.php
Original file line number Diff line number Diff line change
Expand Up @@ -2394,6 +2394,11 @@ private static function transformDBResults(&$row) {
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;
}
}

/**
Expand Down

0 comments on commit d6994b2

Please sign in to comment.