diff options
author | Joas Schilling <coding@schilljs.com> | 2024-06-10 08:52:52 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-06-10 08:52:52 +0200 |
commit | 0ffec5b955bb7dc4cff3618abe18ee116efee7bf (patch) | |
tree | 7ea2753d1c6a6640a199da99942e3f4c0d2850c5 /apps/files_sharing/lib | |
parent | 6c92419ef1ca0852a3a94a1c4506a85a4c9df8c8 (diff) | |
download | nextcloud-server-bugfix/45481/controller-parameter-overwrite.tar.gz nextcloud-server-bugfix/45481/controller-parameter-overwrite.zip |
fix(sharing): Fix type of expireDate for providersbugfix/45481/controller-parameter-overwrite
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 1e7ddc2ab01..9f483cd23d8 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -656,8 +656,8 @@ class ShareAPIController extends OCSController { if ($expireDate !== null) { if ($expireDate !== '') { try { - $expireDate = $this->parseDate($expireDate); - $share->setExpirationDate($expireDate); + $expireDateTime = $this->parseDate($expireDate); + $share->setExpirationDate($expireDateTime); } catch (\Exception $e) { throw new OCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD')); } |