better validation for OC_App::getAppPath()

remotes/origin/ldap_group_count
Georg Ehrke 11 years ago
parent 16396e2e33
commit 09356bc5b3
  1. 4
      lib/private/app.php

@ -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;
}

Loading…
Cancel
Save