diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 10:35:00 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-13 10:35:00 +0100 |
commit | 37e8a87d46473614fca82cd0a6d85ac75d8a4640 (patch) | |
tree | 7356b2662415ecc2cf812a883cbf008b54060062 /lib/private/app.php | |
parent | e0aa6e01ab14191f42b2e79d32a9e0cc0203f975 (diff) | |
parent | c009d5dcc1be69d280a71e01c5302f7fc3e5edc7 (diff) | |
download | nextcloud-server-37e8a87d46473614fca82cd0a6d85ac75d8a4640.tar.gz nextcloud-server-37e8a87d46473614fca82cd0a6d85ac75d8a4640.zip |
Merge pull request #21591 from owncloud/add-code-checking-for-apps
Verify signature of apps with level "Official" coming from the appstore
Diffstat (limited to 'lib/private/app.php')
-rw-r--r-- | lib/private/app.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 6c155136fe9..b4856f11860 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -313,14 +313,14 @@ class OC_App { * @param string $app * @return int */ - public static function downloadApp($app) { + private static function downloadApp($app) { $ocsClient = new OCSClient( \OC::$server->getHTTPClientService(), \OC::$server->getConfig(), \OC::$server->getLogger() ); $appData = $ocsClient->getApplication($app, \OCP\Util::getVersion()); - $download= $ocsClient->getApplicationDownload($app, \OCP\Util::getVersion()); + $download = $ocsClient->getApplicationDownload($app, \OCP\Util::getVersion()); if(isset($download['downloadlink']) and $download['downloadlink']!='') { // Replace spaces in download link without encoding entire URL $download['downloadlink'] = str_replace(' ', '%20', $download['downloadlink']); @@ -856,7 +856,7 @@ class OC_App { * @param string $ocsID * @return string|false */ - protected static function getInternalAppIdByOcs($ocsID) { + public static function getInternalAppIdByOcs($ocsID) { if(is_numeric($ocsID)) { $idArray = \OC::$server->getAppConfig()->getValues(false, 'ocsid'); if(array_search($ocsID, $idArray)) { @@ -1042,7 +1042,7 @@ class OC_App { /** - * @param mixed $app + * @param string $app * @return bool * @throws Exception if app is not compatible with this version of ownCloud * @throws Exception if no app-name was specified |