summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-06-06 17:40:16 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-06-06 17:40:16 +0200
commit9c00f5ddb61507f7bd02a79e2a62339b45b20c0b (patch)
tree5538d26c65a26b078e1b49bfbc1b37637257023e /core/ajax
parentf15d7dfec06ff895b8956741277f5ec8d6f4fa92 (diff)
downloadnextcloud-server-9c00f5ddb61507f7bd02a79e2a62339b45b20c0b.tar.gz
nextcloud-server-9c00f5ddb61507f7bd02a79e2a62339b45b20c0b.zip
set minDate and maxDate in datepicker
Diffstat (limited to 'core/ajax')
-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;