diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2024-04-18 16:27:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 16:27:59 +0200 |
commit | 896c115a818ce0cd6f087c047ae89e8a5fa9136b (patch) | |
tree | 2dc5cc767078f34fb4f02b920764122441566b82 | |
parent | 20275f5565b4dfbbe702bd40995693b80b031bdf (diff) | |
parent | 84b0818ed36d333bf0eee8f0ffb8be9ee27a78be (diff) | |
download | nextcloud-server-896c115a818ce0cd6f087c047ae89e8a5fa9136b.tar.gz nextcloud-server-896c115a818ce0cd6f087c047ae89e8a5fa9136b.zip |
Merge pull request #44917 from nextcloud/backport/44916/stable29
[stable29] fix(sharing): Don't change the type of the controller argument
-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 fa0e2d56007..1bdcee11c45 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -648,8 +648,8 @@ class ShareAPIController extends OCSController { //Expire date 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')); } |