Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/groupfolders.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2021-12-12 23:21:15 +0300
committerCarl Schwan <carl@carlschwan.eu>2021-12-15 16:30:07 +0300
commit3397498694f2e7d0ec3db9603de0ac6f72cb7e53 (patch)
tree9dd8aa81f11caedb4c0635274137e65f49e92a2c
parent388b4818619cc6ca1d137a24836a5a724ae4730d (diff)
Fix #1813 Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit 50a21781082951fc65e83f092ee6e5b92d36c298)
-rw-r--r--lib/Command/ACL.php2
-rw-r--r--lib/Command/Delete.php2
-rw-r--r--lib/Command/Group.php2
-rw-r--r--lib/Command/Quota.php2
-rw-r--r--lib/Command/Rename.php2
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/Command/ACL.php b/lib/Command/ACL.php
index 82287cc5..4f55d417 100644
--- a/lib/Command/ACL.php
+++ b/lib/Command/ACL.php
@@ -88,7 +88,7 @@ class ACL extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
- $folderId = $input->getArgument('folder_id');
+ $folderId = (int)$input->getArgument('folder_id');
$folder = $this->folderManager->getFolder($folderId, $this->rootFolder->getMountPoint()->getNumericStorageId());
if ($folder) {
if ($input->getOption('enable')) {
diff --git a/lib/Command/Delete.php b/lib/Command/Delete.php
index 52fbb868..6dfbe533 100644
--- a/lib/Command/Delete.php
+++ b/lib/Command/Delete.php
@@ -53,7 +53,7 @@ class Delete extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
- $folderId = $input->getArgument('folder_id');
+ $folderId = (int)$input->getArgument('folder_id');
$folder = $this->folderManager->getFolder($folderId, $this->rootFolder->getMountPoint()->getNumericStorageId());
if ($folder) {
$helper = $this->getHelper('question');
diff --git a/lib/Command/Group.php b/lib/Command/Group.php
index d81ade6d..44f73007 100644
--- a/lib/Command/Group.php
+++ b/lib/Command/Group.php
@@ -65,7 +65,7 @@ class Group extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
- $folderId = $input->getArgument('folder_id');
+ $folderId = (int)$input->getArgument('folder_id');
$folder = $this->folderManager->getFolder($folderId, $this->rootFolder->getMountPoint()->getNumericStorageId());
if ($folder) {
$groupString = $input->getArgument('group');
diff --git a/lib/Command/Quota.php b/lib/Command/Quota.php
index eb08a407..17b8e541 100644
--- a/lib/Command/Quota.php
+++ b/lib/Command/Quota.php
@@ -50,7 +50,7 @@ class Quota extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
- $folderId = $input->getArgument('folder_id');
+ $folderId = (int)$input->getArgument('folder_id');
$folder = $this->folderManager->getFolder($folderId, $this->rootFolder->getMountPoint()->getNumericStorageId());
if ($folder) {
$quotaString = strtolower($input->getArgument('quota'));
diff --git a/lib/Command/Rename.php b/lib/Command/Rename.php
index 6e221640..69fa1a17 100644
--- a/lib/Command/Rename.php
+++ b/lib/Command/Rename.php
@@ -48,7 +48,7 @@ class Rename extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
- $folderId = $input->getArgument('folder_id');
+ $folderId = (int)$input->getArgument('folder_id');
$folder = $this->folderManager->getFolder($folderId, $this->rootFolder->getMountPoint()->getNumericStorageId());
if ($folder) {
$this->folderManager->renameFolder($folderId, $input->getArgument('name'));