Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-01-10 00:15:50 +0300
committerLukas Reschke <lukas@owncloud.com>2016-01-10 21:40:28 +0300
commitc009d5dcc1be69d280a71e01c5302f7fc3e5edc7 (patch)
tree41cf627cb0c3a11b2450e3f0737bd360060b2a8f /lib/private/app.php
parent656b5418996744b5ba095afac59b4fdb4db37337 (diff)
Verify signature of apps with level "Official" coming from the appstore
This change will verify the signature of all apps with the level "Official" coming from the appstore or if they have been signed before.
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 500a60060e6..74a89b8bc78 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -312,14 +312,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']);
@@ -855,7 +855,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)) {
@@ -1036,7 +1036,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