summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2020-11-21 01:11:37 +0000
committerGitHub <noreply@github.com>2020-11-21 01:15:15 +0000
commitd25ca1976be643ad123514e4b32f74c0814b2d40 (patch)
treeeff1424fe4dd985954bb2e4123f2ccffa1de74f7 /lib/private/legacy
parentdb3a3bee377a3d4e7b5f54b863cbd8b7b2fa8607 (diff)
downloadnextcloud-server-d25ca1976be643ad123514e4b32f74c0814b2d40.tar.gz
nextcloud-server-d25ca1976be643ad123514e4b32f74c0814b2d40.zip
Mark getAppPath as specialized taint
Should remove some false positives. https://psalm.dev/docs/security_analysis/avoiding_false_positives/ Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/OC_App.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php
index f7fdda66482..99d93b569ba 100644
--- a/lib/private/legacy/OC_App.php
+++ b/lib/private/legacy/OC_App.php
@@ -517,6 +517,8 @@ class OC_App {
* Get the directory for the given app.
* If the app is defined in multiple directories, the first one is taken. (false if not found)
*
+ * @psalm-taint-specialize
+ *
* @param string $appId
* @return string|false
* @deprecated 11.0.0 use \OC::$server->getAppManager()->getAppPath()