summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-21 09:25:24 +0200
committerGitHub <noreply@github.com>2017-07-21 09:25:24 +0200
commit3d9fd4d0d179e4d66f689ff8f5eb5bcbf7dbddd2 (patch)
tree0ea48130a92c59d31ec02c40d363fc4291245cf3 /apps/files_external
parent964d5338dc90908f1e041f8c162c78e220bc28ec (diff)
parent29e715a1b968f2b7f3b72a692d94055b31aaded9 (diff)
downloadnextcloud-server-3d9fd4d0d179e4d66f689ff8f5eb5bcbf7dbddd2.tar.gz
nextcloud-server-3d9fd4d0d179e4d66f689ff8f5eb5bcbf7dbddd2.zip
Merge pull request #5817 from nextcloud/add-basic-sql-injection-checker
Add Phan plugin to check for SQL injections
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Service/DBConfigService.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_external/lib/Service/DBConfigService.php b/apps/files_external/lib/Service/DBConfigService.php
index 21818eec601..71a77cd4347 100644
--- a/apps/files_external/lib/Service/DBConfigService.php
+++ b/apps/files_external/lib/Service/DBConfigService.php
@@ -116,6 +116,7 @@ class DBConfigService {
* Get admin defined mounts
*
* @return array
+ * @suppress SqlInjectionChecker
*/
public function getAdminMounts() {
$builder = $this->connection->getQueryBuilder();
@@ -160,6 +161,7 @@ class DBConfigService {
* @param int $type any of the self::APPLICABLE_TYPE_ constants
* @param string|null $value user_id, group_id or null for global mounts
* @return array
+ * @suppress SqlInjectionChecker
*/
public function getAdminMountsFor($type, $value) {
$builder = $this->connection->getQueryBuilder();
@@ -175,6 +177,7 @@ class DBConfigService {
* @param int $type any of the self::APPLICABLE_TYPE_ constants
* @param string[] $values user_ids or group_ids
* @return array
+ * @suppress SqlInjectionChecker
*/
public function getAdminMountsForMultiple($type, array $values) {
$builder = $this->connection->getQueryBuilder();
@@ -198,6 +201,7 @@ class DBConfigService {
* @param int $type any of the self::APPLICABLE_TYPE_ constants
* @param string|null $value user_id, group_id or null for global mounts
* @return array
+ * @suppress SqlInjectionChecker
*/
public function getUserMountsFor($type, $value) {
$builder = $this->connection->getQueryBuilder();