aboutsummaryrefslogtreecommitdiffstats
path: root/core/ajax/share.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-06-06 19:24:15 +0200
committerBjörn Schießle <schiessle@owncloud.com>2014-06-06 19:24:15 +0200
commit3da47db33cd9a676a1f5b51a8c8ed1abe617ce3e (patch)
treefb349c85f68d736aed93ff9bf9167199879aa1bb /core/ajax/share.php
parentdfe6bd61bf315693dd447cda0f66d5a4c23128f1 (diff)
parent9c00f5ddb61507f7bd02a79e2a62339b45b20c0b (diff)
downloadnextcloud-server-3da47db33cd9a676a1f5b51a8c8ed1abe617ce3e.tar.gz
nextcloud-server-3da47db33cd9a676a1f5b51a8c8ed1abe617ce3e.zip
Merge pull request #8927 from owncloud/expire_only_link_shares
only expire link shares
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r--core/ajax/share.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index feb64490b4e..be72e36541a 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -84,6 +84,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$date = new \DateTime($_POST['date']);
$today = new \DateTime('now');
+
+
if ($date < $today) {
OC_JSON::error(array('data' => array('message' => $l->t('Expiration date is in the past.'))));
return;