Skip to content
Snippets Groups Projects
Commit 09356bc5 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

better validation for OC_App::getAppPath()

parent 16396e2e
Branches
No related tags found
No related merge requests found
......@@ -509,6 +509,10 @@ class OC_App {
* @return string|false
*/
public static function getAppPath($appid) {
if ($appid === null || trim($appid) === '') {
return false;
}
if (($dir = self::findAppInDirectories($appid)) != false) {
return $dir['path'] . '/' . $appid;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment