diff options
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r-- | core/ajax/share.php | 2 |
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; |