aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/App/IAppManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/App/IAppManager.php')
-rw-r--r--lib/public/App/IAppManager.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php
index b735b0d7c64..68c3cc771f4 100644
--- a/lib/public/App/IAppManager.php
+++ b/lib/public/App/IAppManager.php
@@ -141,12 +141,10 @@ interface IAppManager {
/**
* Get the directory for the given app.
*
- * @param string $appId
- * @return string
* @since 11.0.0
* @throws AppPathNotFoundException
*/
- public function getAppPath($appId);
+ public function getAppPath(string $appId): string;
/**
* Get the web path for the given app.
@@ -282,4 +280,16 @@ interface IAppManager {
* @since 30.0.0
*/
public function isBackendRequired(string $backend): bool;
+
+ /**
+ * Clean the appId from forbidden characters
+ *
+ * @psalm-taint-escape file
+ * @psalm-taint-escape include
+ * @psalm-taint-escape html
+ * @psalm-taint-escape has_quotes
+ *
+ * @since 31.0.0
+ */
+ public function cleanAppId(string $app): string;
}